WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #19584, comment 1


Ignore:
Timestamp:
12/17/11 03:11:54 (2 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19584, comment 1

    v1 v2  
    11I see no point in doing this. Unlike wp_set_post_terms(), wp_insert_term() also accepts an array of additional parameters for the term. 
    22 
    3 We wouldn't make wp_insert_post() accept an array. 
     3We wouldn't make wp_insert_post() accept an array of arrays. 
    44 
    55Just use a foreach loop or make a wrapper function if you need to do this often.