[wp-trac] [WordPress Trac] #22047: Do action 'save_post' for attachments in 'wp_insert_attachment()'
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 29 17:20:48 UTC 2012
#22047: Do action 'save_post' for attachments in 'wp_insert_attachment()'
--------------------------------------+-------------------------
Reporter: dnaber-de | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: trunk | Severity: normal
Keywords: dev-feedback 2nd-opinion |
--------------------------------------+-------------------------
I'm currently change my plugins to use meta boxes instead of the filter
'attachment_fields_to_edit' to add fields to the attachment edit screen.
Adding meta boxes works as expected like for all other post types.
They usual way to evaluate meta boxes is a callback on 'save_post' for all
other post-types. At the moment there are two actions for the attachment
post type: 'add_attachment' and 'edit_attachment'. I think it would be
consistent to do the action 'save_post' also in 'wp_insert_attachment()'.
Or at least provide an action like 'save_attachment'.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22047>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list