#9345 closed defect (bug) (fixed)
wp_update_term - Check return from get_term in case it's a WP Error
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | Cc: |
Description
Currently the code in wp_update_term doesn't check the returned term from get_term, which could be a WP_Error object. add_magic_quotes on the next line doesn't like WP_Error objects.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Code within wp_update_term to check whether the return from get_term is a WP_Error, and return it immediately if it is.