[wp-trac] [WordPress Trac] #11052: Cannot trash Media without title
WordPress Trac
wp-trac at lists.automattic.com
Mon Nov 23 00:43:49 UTC 2009
#11052: Cannot trash Media without title
-----------------------+----------------------------------------------------
Reporter: Simek | Type: defect (bug)
Status: new | Priority: normal
Milestone: 2.9 | Component: Trash
Version: 2.9 | Severity: normal
Keywords: has-patch |
-----------------------+----------------------------------------------------
Changes (by caesarsgrunt):
* keywords: needs-patch => has-patch
Comment:
The problem is with lines 1613-1618 of wp-includes/post.php, in
wp_insert_post(). They throw an error if the content, title, and excerpt
are all empty, which has he effect of making it impossible to update (eg
trash) an attachment without a title. I don't know what the purpose of
these lines is... but my patch fixes the problem by making it not throw
the error if the post is an attachment.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11052#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list