[wp-trac] [WordPress Trac] #19730: Death "Add Media" link after permanently deleting media items.

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 18 00:51:14 UTC 2012


#19730: Death "Add Media" link after permanently deleting media items.
--------------------------+------------------
 Reporter:  Jordi-Fun     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4
Component:  Media         |     Version:  3.3
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------
Changes (by SergeyBiryukov):

 * keywords:   => has-patch
 * milestone:  Awaiting Review => 3.4


Comment:

 I can reproduce with referers disabled. The page that says "Invalid post
 type" is `post-new.php?post_type=attachment`.

 Adding `_wp_http_referer` to delete links in `_get_row_actions()`
 (similarly to [http://core.trac.wordpress.org/browser/tags/3.3.1/wp-
 admin/includes/class-wp-ms-users-list-table.php#L193
 WP_MS_Users_List_Table]) fixes this.

 The patch also improves readability a bit.

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


More information about the wp-trac mailing list