[wp-trac] [WordPress Trac] #21492: Theme customizer > Static front page: missing error message when front page and posts pages are similar
WordPress Trac
noreply at wordpress.org
Sat Feb 18 01:35:35 UTC 2017
#21492: Theme customizer > Static front page: missing error message when front page
and posts pages are similar
--------------------------+--------------------
Reporter: hd-J | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7.3
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui
--------------------------+--------------------
Comment (by westonruter):
@MatheusGimenez also, I think that `absint` shouldn't be used, per #38203.
So maybe this to ensure it is not a negative value:
{{{
$page_for_posts = max( 0, (int) get_option( 'page_for_posts', 0 ) );
}}}
Additionally, instead of saying “warning” and “advise” the error message
would need to be more forceful because saving would actually be blocked if
they make the two the same.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21492#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list