Changeset 8663 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/redirects.php
- Timestamp:
- 04/24/2019 07:06:00 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/redirects.php
r7319 r8663 27 27 add_action( 'template_redirect', array( __CLASS__, 'redirect_singularized_handbooks' ), 1 ); 28 28 add_action( 'template_redirect', array( __CLASS__, 'redirect_pluralized_reference_post_types' ), 1 ); 29 add_action( 'template_redirect', array( __CLASS__, 'paginated_home_page_404' ) ); 29 30 } 30 31 … … 117 118 } 118 119 120 /** 121 * Returns 404 response to requests for non-first pages of the front page. 122 */ 123 public static function paginated_home_page_404() { 124 // Paginated front page. 125 if ( is_front_page() && is_paged() ) { 126 include( get_stylesheet_directory() . '/404.php' ); 127 exit; 128 } 129 } 130 119 131 } // DevHub_Redirects 120 132
Note: See TracChangeset
for help on using the changeset viewer.