Make WordPress Core

Changeset 16816


Ignore:
Timestamp:
12/08/2010 09:02:07 PM (14 years ago)
Author:
nacin
Message:

Update show_on_front to posts if there are no pages, just in case. see #14403.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-reading.php

    r15959 r16816  
    6565<input name="show_on_front" type="hidden" value="posts" />
    6666<table class="form-table">
    67 <?php else :
     67<?php
     68    if ( 'posts' != get_option( 'show_on_front' ) ) :
     69        update_option( 'show_on_front', 'posts' );
     70    endif;
     71
     72else :
    6873    if ( 'page' == get_option( 'show_on_front' ) && ! get_option( 'page_on_front' ) && ! get_option( 'page_for_posts' ) )
    6974        update_option( 'show_on_front', 'posts' );
Note: See TracChangeset for help on using the changeset viewer.