Ticket #21096: is_front_page_filter.diff
File is_front_page_filter.diff, 652 bytes (added by , 12 years ago) |
---|
-
wp-includes/query.php
3283 3283 function is_front_page() { 3284 3284 // most likely case 3285 3285 if ( 'posts' == get_option( 'show_on_front') && $this->is_home() ) 3286 returntrue;3286 $return = true; 3287 3287 elseif ( 'page' == get_option( 'show_on_front') && get_option( 'page_on_front' ) && $this->is_page( get_option( 'page_on_front' ) ) ) 3288 returntrue;3288 $return = true; 3289 3289 else 3290 return false; 3290 $return = false; 3291 3292 return apply_filters( 'is_front_page', $return ); 3291 3293 } 3292 3294 3293 3295 /**