mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Introduce get_index_template(). Allows child themes to override a parent theme's index.php. Props koopersmith, fixes #12635
git-svn-id: https://develop.svn.wordpress.org/trunk@13819 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -685,6 +685,17 @@ function get_query_template($type) {
|
||||
return apply_filters("{$type}_template", locate_template(array("{$type}.php")));
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve path of index template in current or parent template.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_index_template() {
|
||||
return get_query_template('index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve path of 404 template in current or parent template.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user