[wp-trac] Re: [WordPress Trac] #8146: Quick tag/category edit appears to be using filtered data

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 12 22:00:40 GMT 2008


#8146: Quick tag/category edit appears to be using filtered data
-----------------------------------------+----------------------------------
 Reporter:  jhodgdon                     |        Owner:  anonymous
     Type:  defect                       |       Status:  closed   
 Priority:  normal                       |    Milestone:  2.7      
Component:  Administration               |      Version:  2.7      
 Severity:  normal                       |   Resolution:  fixed    
 Keywords:  tag, category, edit, filter  |  
-----------------------------------------+----------------------------------
Comment (by azaozz):

 Replying to [comment:5 jhodgdon]:
 > I haven't had time to debug this and find where it is in the code, but
 it's probably from the function get_term() in wp-includes/taxonomy.php,
 which has an argument $filter. If $filter is set to 'display', then all
 the standard plugin filters are called to alter the term name before
 returning it. If it is set to 'raw', then no filters are applied (which is
 what you need for editing, so you are editing the raw data from the
 database). Based on what I am observing, it is set to 'display' when the
 call to get_term() is made when setting up Quick Edit. That is incorrect.
 >
 They were already using the 'raw' filter as that's the default, but should
 be using the 'edit' filter like on the Edit pages.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8146#comment:10>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list