WordPress.org

Make WordPress Core

Changeset 25459


Ignore:
Timestamp:
09/16/13 20:36:35 (4 years ago)
Author:
nacin
Message:

Only focus the title field when it is empty. Remove ancient code that provided for an alternate condition.

props scruffian for initial patches.
props helen.
fixes #24423.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r25122 r25459  
    470470?> 
    471471 
    472 <?php if ( (isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message']) ) : ?> 
     472<?php if ( '' === $post->post_title ) : ?> 
    473473<script type="text/javascript"> 
    474474try{document.post.title.focus();}catch(e){} 
Note: See TracChangeset for help on using the changeset viewer.