Make WordPress Core


Ignore:
Timestamp:
10/07/2016 09:02:39 PM (8 years ago)
Author:
johnbillion
Message:

Themes: Remove paged.php from the theme template hierarchy.

The position of this template within the hierarchy is of so little use that zero themes in the WordPress.org theme directory make use of it. It's second only to index.php in the hierarchy, meaning that any archive template such as category.php or archive.php will be chosen before it.

Fixes #38162
Props ryankienstra for initial patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/template.php

    r38609 r38755  
    380380
    381381    return get_query_template( 'page', $templates );
    382 }
    383 
    384 /**
    385  * Retrieve path of paged template in current or parent template.
    386  *
    387  * The template hierarchy is filterable via the {@see 'paged_template_hierarchy'} hook.
    388  * The template path is filterable via the {@see 'paged_template'} hook.
    389  *
    390  * @since 1.5.0
    391  *
    392  * @see get_query_template()
    393  *
    394  * @return string Full path to paged template file.
    395  */
    396 function get_paged_template() {
    397     return get_query_template('paged');
    398382}
    399383
Note: See TracChangeset for help on using the changeset viewer.