[wp-trac] [WordPress Trac] #17209: Category list table breaks when custom post type label is too long

WordPress Trac noreply at wordpress.org
Fri Apr 25 10:54:57 UTC 2014


#17209: Category list table breaks when custom post type label is too long
----------------------------+-----------------------------
 Reporter:  andrewryno      |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  4.0
Component:  Taxonomy        |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  good-first-bug  |     Focuses:  administration
----------------------------+-----------------------------
Changes (by philipjohn):

 * keywords:  needs-patch good-first-bug => good-first-bug


Comment:

 My first patch! Yay :) At WordCamp Sheffield Contributor Day, by the
 way...

 This patch adds the following;

 * Checks if the post type name is longer than 5 characters
 * If so, use '#' as the column header instead
 * Otherwise, uses the post type name

 It still falls back to "Posts" if the post type object isn't available.

 I tried using "Count" but more often than not the T disappeared producing
 a similar result to the example given for this bug, so didn't seem an
 appropriate solution.

 Hash ('#') was chosen as something that is (probably) universally
 recognised as meaning "number"/"count". I'm not confident of that, hence
 why I've put it through the i18n function but thoughts welcome on that
 (hence why I haven't updated POT either).

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


More information about the wp-trac mailing list