Changeset 38755
- Timestamp:
- 10/07/2016 09:02:39 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/deprecated.php
r38641 r38755 3759 3759 return ''; 3760 3760 } 3761 3762 /** 3763 * Retrieve path of paged template in current or parent template. 3764 * 3765 * @since 1.5.0 3766 * @deprecated 4.7.0 The paged.php template is no longer part of the theme template heirarchy. 3767 * 3768 * @return string Full path to paged template file. 3769 */ 3770 function get_paged_template() { 3771 _deprecated_function( __FUNCTION__, '4.7.0' ); 3772 3773 return get_query_template( 'paged' ); 3774 } -
trunk/src/wp-includes/template-loader.php
r37518 r38755 61 61 elseif ( is_date() && $template = get_date_template() ) : 62 62 elseif ( is_archive() && $template = get_archive_template() ) : 63 elseif ( is_paged() && $template = get_paged_template() ) :64 63 else : 65 64 $template = get_index_template(); -
trunk/src/wp-includes/template.php
r38609 r38755 380 380 381 381 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.0391 *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');398 382 } 399 383 -
trunk/tests/phpunit/tests/theme.php
r35849 r38755 268 268 $this->assertEquals(get_home_template(), get_query_template('home', array('home.php','index.php'))); 269 269 $this->assertEquals(get_page_template(), get_query_template('page')); 270 $this->assertEquals(get_paged_template(), get_query_template('paged'));271 270 $this->assertEquals(get_search_template(), get_query_template('search')); 272 271 $this->assertEquals(get_single_template(), get_query_template('single'));
Note: See TracChangeset
for help on using the changeset viewer.