Opened 14 years ago
Closed 14 years ago
#12737 closed defect (bug) (fixed)
is_front_page issue with no pages
Reported by: | Connorhd | Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 2.9.2 |
Component: | General | Keywords: | dev-feedback has-patch |
Focuses: | Cc: |
Description
With no published pages the setting "show_on_front" is removed when the reading settings are changed, this causes show_on_front to always return false.
Attachments (3)
Change History (7)
#3
@
14 years ago
- Keywords has-patch added
New patch adds a hidden input field to options-reading.php when no published pages are present. This saves options.php from blanking show_on_front when saving.
Viper007Bond and I discussed fixing this for backwards compat and without the user going to options-reading.php and clicking "Save Changes" the option will still remain blank. I am open to suggestions, but really feel that fixing it in the is_front_page logic is the wrong place.
Note: See
TracTickets for help on using
tickets.
I think we are trying to patch the wrong thing here. The is_front_page function does the following check:
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.