Make WordPress Core

Changeset 14362


Ignore:
Timestamp:
05/03/2010 06:30:21 AM (14 years ago)
Author:
nacin
Message:

When no pages are present add a hidden input field so that the show_on_front option is not blanked. Fixes is_front_page return value in an edge case. props sivel, fixes #12737, fixes #9105.

File:
1 edited

Legend:

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

    r14139 r14362  
    2626<?php settings_fields( 'reading' ); ?>
    2727
     28<?php if ( ! get_pages() ) : ?>
     29<input name="show_on_front" type="hidden" value="posts" />
    2830<table class="form-table">
    29 <?php if ( get_pages() ): ?>
     31<?php else : ?>
     32<table class="form-table">
    3033<tr valign="top">
    3134<th scope="row"><?php _e( 'Front page displays' ); ?></th>
Note: See TracChangeset for help on using the changeset viewer.