[wp-trac] [WordPress Trac] #22672: Edit Media Page: Title Field Has No Value

WordPress Trac noreply at wordpress.org
Sat Dec 1 03:46:13 UTC 2012


#22672: Edit Media Page: Title Field Has No Value
--------------------------+------------------------------
 Reporter:  miqrogroove   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by miqrogroove):

 The fix is actually simple.  Because 3.5 is using post.php to edit
 attachments now, it runs into the same code that was handling "Auto Draft"
 posts, which can be found in the Media Library for images uploaded to
 posts that weren't saved.  It's possible to edit that post, so there's a
 line of code that says to blank out the "Auto Draft" value of the title
 when editing that post.

 My patch checks to make sure the "post" object being edited is not an
 attachment.  There are many other possible solutions, as there are many
 ways to distinguish auto-draft posts and the attachments thereof.

 see miqro-22672.patch

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22672#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list