[wp-trac] [WordPress Trac] #11149: Images are still visible if trashed or if their parent post is unpublished
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 8 14:02:38 UTC 2009
#11149: Images are still visible if trashed or if their parent post is unpublished
--------------------------+-------------------------------------------------
Reporter: aldenta | Owner: aldenta
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 2.9
Component: Media | Version: 2.9
Severity: blocker | Keywords: 2nd-opinion
--------------------------+-------------------------------------------------
Comment(by caesarsgrunt):
Interesting. I'm not familiar with galleries, but presumably they are
generated on the fly and check the image status, rather than having static
code in the post.
This would be a good way to fix this bug and make images more easily
editable overall - instead of inserting static html into the post when an
image is added, just add a shortcode such as {{{[image id=99
align=right]}}}. The handler for this shortcode would then check the image
status, and return an empty string if the status is wrong.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11149#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list