WordPress.org

Make WordPress Core

Ticket #22489: page_on_front.diff

File page_on_front.diff, 740 bytes (added by ldebrouwer, 17 months ago)

This fixes the problem. It creates a hidden input "page_on_front" with value "new".

  • wp-admin/options-reading.php

     
    153153                <?php endif; ?> 
    154154        <?php endif; ?> 
    155155        <?php if ( current_user_can( 'create_posts', 'page' ) ) : ?> 
    156                         <input name="page_on_front_title" type="text" id="page_on_front_title" value="<?php echo esc_attr_x( 'Home', 'default page on front title' ); ?>" /> 
     156                        <input name="page_on_front_title" type="text" id="page_on_front_title" value="<?php echo esc_attr_x( 'Home', 'default page on front title' ); ?>" /><input name="page_on_front" type="hidden" id="page_on_front" value="new" /> 
    157157                </label> 
    158158        <?php endif; ?> 
    159159        </p>