[wp-trac] [WordPress Trac] #24423: After updating the post, only focus post title field if it's empty
WordPress Trac
noreply at wordpress.org
Mon Sep 16 20:33:24 UTC 2013
#24423: After updating the post, only focus post title field if it's empty
------------------------------------------+-----------------------
Reporter: klihelp | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: 3.7
Component: Administration | Version: 2.5
Severity: normal | Resolution:
Keywords: ui-focus has-patch 3.7-early |
------------------------------------------+-----------------------
Comment (by nacin):
I suspect that [1236/trunk/wp-admin/edit-form-advanced.php] was supposed
to be `if ( ! isset( $_GET['message'] ) || 2 > $_GET['message'] )`. That
way if message was not set at all, the title field gets the focus. That
logic issue way back when resulted in [6059], which otherwise wasn't
needed for new posts.
The way the code is written is it also receives the focus for any message
less than 2. That's because in [1197], messages 2 and 3 were added, and
they had to do with custom fields, not saving the post. It no longer makes
sense.
Yes, it should go.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24423#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list