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: http://core.svn.wordpress.org/trunk@22135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c38412a62f
commit
853184672d
|
@ -2780,6 +2780,11 @@ function sanitize_option($option, $value) {
|
||||||
$value = absint( $value );
|
$value = absint( $value );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'show_on_front' :
|
||||||
|
if ( ! $value )
|
||||||
|
$value = 'posts';
|
||||||
|
break;
|
||||||
|
|
||||||
case 'posts_per_page':
|
case 'posts_per_page':
|
||||||
case 'posts_per_rss':
|
case 'posts_per_rss':
|
||||||
$value = (int) $value;
|
$value = (int) $value;
|
||||||
|
|
Loading…
Reference in New Issue