Make WordPress Core

Changeset 22135


Ignore:
Timestamp:
10/08/2012 06:41:19 PM (11 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r22006 r22135  
    27812781            break;
    27822782
     2783        case 'show_on_front' :
     2784            if ( ! $value )
     2785                $value = 'posts';
     2786            break;
     2787
    27832788        case 'posts_per_page':
    27842789        case 'posts_per_rss':
Note: See TracChangeset for help on using the changeset viewer.