[wp-trac] [WordPress Trac] #59252: is_front_page returns false when a static blog page has been set.

WordPress Trac noreply at wordpress.org
Fri Nov 3 21:21:16 UTC 2023


#59252: is_front_page returns false when a static blog page has been set.
--------------------------+-----------------------
 Reporter:  neo2k23       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  2.5
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------
Changes (by neo2k23):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 @jorbin  my question was about.

 I asked why the moment you set a static blog page (not home page) that
 same call for is_front_page on the home page returns false.

 This is not what is in the
 documentation.https://developer.wordpress.org/reference/functions/is_home/


 In the documentation it says "On the site front page, is_front_page() will
 always return true, regardless of whether the site front page displays the
 blog posts index or a static page."


 It does not!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59252#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list