[wp-trac] [WordPress Trac] #16230: Category slugs not cut at 200 characters as it should under some conditions

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 14 14:10:23 UTC 2011


#16230: Category slugs not cut at 200 characters as it should under some conditions
--------------------------+-----------------------------
 Reporter:  paolal        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.1
 Severity:  normal        |   Keywords:  category, slug
--------------------------+-----------------------------
 When a category name is longer than 200 characters, it is cut to 200 and
 so is the slug automatically created upon category creation.

 Now, if you edit the category name or slug afterwards, again trying to set
 a name longer than 200 characters it is cut again.

 But, if you edit the name or slug and use a very long string like this
 one:

 %d1%85%d1%80%d0%b0%d0%bd%d0%b0/%d1%80%d0%b5%d1%86%d0%b5%d0%bf%d1%82%d0%b8/%d0%b4%d0%b5%d1%81%d0%b5%d1%80%d1%82%d0%b8-%d1%80%d0%b5%d1%86%d0%b5%d0%bf%d1%82%d0%b8-%d1%85%d1%80%d0%b0%d0%bd%d0%b0/%d1%81%d0%bb%d0%b0%d0%b4%d0%ba%d0%b8%d1%88%d0%b8-%d0%b4%d0%b5%d1%81%d0%b5%d1%80%d1%82%d0%b8-%d1%80%d0%b5%d1%86%d0%b5%d0%bf%d1%82%d0%b8-%d1%85%d1%80%d0%b0%d0%bd%d0%b0-%d1%80%d0%b5%d1%86%d0%b5%d0%bf%d1%/

 Then the slug ends up being longer than the 200 chars limit.

 Now if on the Categories list dashboard page you have more categories than
 visible on one page, and the category you edited above is not on page 1,
 the page it is on will appear empty (while successive pages will be all
 right if they contain regular categories)

 This has been reproduced on 3.1-RC2-17283

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16230>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list