WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/07/2016 09:02:39 PM (5 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-loader.php

    r37518 r38755  
    6161    elseif ( is_date()           && $template = get_date_template()           ) :
    6262    elseif ( is_archive()        && $template = get_archive_template()        ) :
    63     elseif ( is_paged()          && $template = get_paged_template()          ) :
    6463    else :
    6564        $template = get_index_template();
Note: See TracChangeset for help on using the changeset viewer.