mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Set show_on_front to 'posts' when no value is set. This occurs when the show_on_front checkbox is left unchecked and then sent through options.php. fixes #22131.
git-svn-id: https://develop.svn.wordpress.org/trunk@22135 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
64e8309d8e
commit
bbd97dc498
@ -2780,6 +2780,11 @@ function sanitize_option($option, $value) {
|
||||
$value = absint( $value );
|
||||
break;
|
||||
|
||||
case 'show_on_front' :
|
||||
if ( ! $value )
|
||||
$value = 'posts';
|
||||
break;
|
||||
|
||||
case 'posts_per_page':
|
||||
case 'posts_per_rss':
|
||||
$value = (int) $value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user