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

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 13 16:26:31 GMT 2008


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

 OK, I figured it out.

 My plugin uses a filter on 'cat_rows' to make the display of the
 categories list on wp-admin/categories.php look nice. If you remove that
 filter, then the categories list doesn't look nice. This has been needed
 over the last many many versions of WordPress.

 The issue now is that the hidden fields that are used for Quick Edit are
 built at the same time as the rest of the display. So they are also passed
 through the 'cat_rows' filter. Hence, they are filtered.

 My debug prints from the database queries were also being passed through
 the same filter, by the way, which is why it looked like they were doing
 something very weird.

 So, what needs to be done is to fix the categories, tags, etc. displays so
 they are properly display filtered in the first place and remove that
 brute force cat_rows filter call. In my plugin, I have filters
 'the_category', 'the_category_rss', 'single_cat_title', 'list_cats',
 'term_name', and 'category_name' (among others), but only 'cat_rows' seems
 to be affecting that particular page.

 I will see about a patch...

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


More information about the wp-trac mailing list