[wp-trac] [WordPress Trac] #20046: Unnecessary default category code remains in wp_insert_attachment
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 15 01:25:37 UTC 2012
#20046: Unnecessary default category code remains in wp_insert_attachment
--------------------------+------------------------------
Reporter: jeremyfelt | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: trivial | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by jeremyfelt):
Clarification on the 'set_object_terms' action. It's possible that a
plugin could use this to manage taxonomy on attachments as they are
uploaded, so it may be useful to add the same do_action that would
normally be run to the patch to replace the removed
wp_set_post_categories.
{{{
do_action('set_object_terms', $object_id, $terms, $tt_ids, $taxonomy,
$append, $old_tt_ids);
}}}
Would obviously need to change the arguments a bit.
I can redo the patch if it's determined that this action hook is
necessary.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20046#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list