[wp-trac] [WordPress Trac] #16550: wp_set_post_categories should take an integer (was: wp_set_post_categories is defected)
WordPress Trac
wp-trac at lists.automattic.com
Sun Feb 20 17:14:58 UTC 2011
#16550: wp_set_post_categories should take an integer
-------------------------+-----------------------------
Reporter: ptahdunbar | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+-----------------------------
Changes (by nacin):
* type: defect (bug) => enhancement
* version: 3.1 => 3.0
* milestone: Awaiting Review => Future Release
Comment:
Re-classifying this ticket. It's not a defect -- wp_set_post_categories()
explicitly takes an array, so `array( 3 )` rather than `3`.
Other functions such as wp_set_object_terms() seem to not mind taking a
scalar argument. So this looks like a fine enhancement.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16550#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list