[wp-trac] [WordPress Trac] #17419: Authors see misleading links in media library

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 19 23:01:36 UTC 2011


#17419: Authors see misleading links in media library
----------------------------+------------------
 Reporter:  johnbillion     |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.3
Component:  Administration  |     Version:  3.1
 Severity:  minor           |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------
Changes (by kurtpayne):

 * cc: kpayne@… (added)


Comment:

 Looks like there's a bug when mixing images that are owned by an author
 and images that are not owned by an author.  For example, see
 [[attachment:17419.bug.png]].  The user "author" uploaded an image,
 futurama_14, that shows a checkbox and the appropriate edit, delete, and
 attach links.  However, the "author" user is also given checkboxes and
 attach links for other images.

 It looks like the `$post` object is being reset by
 [http://codex.wordpress.org/The_Loop The Loop] in `display_rows()`
 function.  Patch [[attachment:17419.formatted.1.diff]] should fix this by
 resetting `$user_can_edit` after the loop.

 Let me know if I missed anything!

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


More information about the wp-trac mailing list