[wp-trac] [WordPress Trac] #32248: adding a term containing "&" and renamed

WordPress Trac noreply at wordpress.org
Tue Jun 16 16:36:07 UTC 2015


#32248: adding a term containing "&" and renamed
----------------------------+-----------------------------
 Reporter:  olivM           |       Owner:  boonebgorges
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  4.3
Component:  Administration  |     Version:  4.0
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  administration
----------------------------+-----------------------------
Changes (by matthewmi11er):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Unless I'm mistaken because of a similar mismatch in sanitation
 {{{
 term_exists
 }}}

 contributes to this problem.

 Something like the following should be added at line 2113
 {{{
 $sanitized_term=sanitize_term(
   array(
    'alias_of' => '',
    'description' => '',
    'parent' => 0, 'slug' => '',
    'name'=>$term,
    'taxonomy'=>$taxonomy
   ),
   $taxonomy);
 $term=$sanitized_term['name'];
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32248#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list