[wp-trac] [WordPress Trac] #25234: wp_create_term is defined in the wrong file
WordPress Trac
noreply at wordpress.org
Thu Sep 5 13:43:29 UTC 2013
#25234: wp_create_term is defined in the wrong file
--------------------------+-----------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 2.8
Severity: normal | Keywords:
--------------------------+-----------------------------
`wp_create_term()` is just a wrapper for a `term_exists()` check and
`wp_insert_term()`, but it's defined in a file that's only included in the
admin area. This means `wp_create_term()` can't be used on the front end
without including `wp-admin/includes/taxonomy.php`. Not good.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25234>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list