WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/26/2010 01:52:43 PM (10 years ago)
Author:
nacin
Message:

Introduce get_index_template(). Allows child themes to override a parent theme's index.php. Props koopersmith, fixes #12635

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r13673 r13819  
    687687
    688688/**
     689 * Retrieve path of index template in current or parent template.
     690 *
     691 * @since 3.0.0
     692 *
     693 * @return string
     694 */
     695function get_index_template() {
     696    return get_query_template('index');
     697}
     698
     699/**
    689700 * Retrieve path of 404 template in current or parent template.
    690701 *
Note: See TracChangeset for help on using the changeset viewer.