[wp-trac] [WordPress Trac] #46112: Use label_count for requests status view links (was: Administration: Unnecessary use of plural handling for label counts)

WordPress Trac noreply at wordpress.org
Sun Jan 27 14:00:46 UTC 2019


#46112: Use label_count for requests status view links
-------------------------------+---------------------
 Reporter:  tobifjellner       |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  5.1
Component:  Posts, Post Types  |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+---------------------
Changes (by ocean90):

 * keywords:  needs-patch => has-patch


Comment:

 [attachment:"46112.diff"] uses `$post_status->label_count`, fixes the use
 of `%d` in the all view label and makes the core more readable.

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


More information about the wp-trac mailing list