Changeset 8663
- Timestamp:
- 04/24/2019 07:06:00 PM (6 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/404.php
r556 r8663 5 5 * @package wporg-developer 6 6 */ 7 8 $GLOBALS['wp_query']->set_404(); 9 status_header( 404 ); 7 10 8 11 get_header(); ?> -
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.