[wp-trac] [WordPress Trac] #12737: is_front_page issue with no pages

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 30 22:52:02 UTC 2010


#12737: is_front_page issue with no pages
--------------------------+-------------------------------------------------
 Reporter:  Connorhd      |       Owner:              
     Type:  defect (bug)  |      Status:  new         
 Priority:  normal        |   Milestone:  3.0         
Component:  General       |     Version:  2.9.2       
 Severity:  normal        |    Keywords:  dev-feedback
--------------------------+-------------------------------------------------
Changes (by sivel):

 * cc: matt@… (added)
  * keywords:  => dev-feedback


Comment:

 I think we are trying to patch the wrong thing here.  The is_front_page
 function does the following check:

 {{{
         // most likely case
         if ( 'posts' == get_option('show_on_front') && is_home() )
                 return true;
 }}}

 That logic should catch this scenario.  If it isn't then we need to find
 out what show_on_front is not set as 'posts' here and patch the code
 responsible for that failure.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12737#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list