Changes between Initial Version and Version 9 of Ticket #59252
- Timestamp:
- 02/04/2025 09:29:42 PM (18 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #59252
- Property Status new → accepted
- Property Version trunk → 2.5
- Property Keywords has-patch added
- Property Owner set to
- Property Component General → Query
-
Ticket #59252 – Description
initial v9 1 1 Hi 2 2 3 I have a question. I do not know if this is a bug or not, but the behaviour of the is_front_page()function is bit ackward.3 I have a question. I do not know if this is a bug or not, but the behaviour of the `is_front_page()` function is bit ackward. 4 4 5 If no static homepage has been set and you call on the home page the function is_front_page() it returns true. If you call is_home() it also retruns true.5 If no static homepage has been set and you call on the home page the function `is_front_page()` it returns true. If you call `is_home()` it also returns true. 6 6 7 However the moment you set a static blog page (not home page) that same call for is_front_page on the home page returns false, but is_home()still returns true.7 However the moment you set a static blog page (not home page) that same call for `is_front_page` on the home page returns false, but `is_home()` still returns true. 8 8 9 Is this a bug? It does not seem consistent to me as there is no static home page set why does is_front_page()return true when no static blog page has been set and return false the moment a static blog page is set.9 Is this a bug? It does not seem consistent to me as there is no static home page set why does `is_front_page()` return true when no static blog page has been set and return false the moment a static blog page is set. 10 10 11 What has the static blog page set in the reading settings to do with the is_front_page()function?11 What has the static blog page set in the reading settings to do with the `is_front_page()` function? 12 12 13 Can somebody please explain this to me as it does not make sense given the description of is_front_page()function?13 Can somebody please explain this to me as it does not make sense given the description of `is_front_page()` function? 14 14 15 15 Thank you … … 23 23 Tested with wp 6.4 latest trunk build clean wordpress. 20-21 theme and php 8.0.x 24 24 25 just add this code to the index.php25 just add this code to the `index.php` 26 26 27 27 {{{#!php … … 60 60 <?php if ( is_home() && ! is_front_page() && ! empty( single_post_title( '', false ) ) ) : ?> 61 61 <header class="page-header alignwide"> 62 <h1 class="page-title"><?php single_post_title(); echo 'HELLO fuckingWORLD'; ?></h1>62 <h1 class="page-title"><?php single_post_title(); echo 'HELLO WORLD'; ?></h1> 63 63 </header><!-- .page-header --> 64 64 <?php endif; ?>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)