[wp-trac] [WordPress Trac] #16349: return list of images actually being used in post
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 23 14:06:02 UTC 2011
#16349: return list of images actually being used in post
--------------------------------------+-----------------------
Reporter: mcmasterp | Owner:
Type: feature request | Status: reopened
Priority: normal | Milestone:
Component: Media | Version: 3.0.4
Severity: normal | Resolution:
Keywords: image, attachment, query |
--------------------------------------+-----------------------
Comment (by mcmasterp):
Replying to [comment:7 mikeschinkel]:
> This would enable a plugin author to write image image management tools
that would actually know where the images are used. It would allow a
developer to write SQL scripts to remove image records that are not needed
yet keep ones that are. There are at least 3 distinct places in a recent
project where I could have used this functionality. It's like asking why
it's important to have a `post_id` field in wp_postmeta; without it data
integrity is a challenge. I'm really surprised the use-cases are not more
obvious.
>
Exactly. I'm surprised at the reaction I am getting, this feature wouldn't
slap your grandma ;)
every time an image is uploaded it should receive an image_id number. Then
every time you publish or updated a post it should scan it for what images
are used and save their corresponding image_id to the posts meta data. Or
something similar to that.
reliable image management in the editor should be a basic goal not an
exotic feature. External images may just be to bad, I don't see how that
would work but then again you wordpress developers are geniuses to me so
who knows!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16349#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list