[wp-trac] [WordPress Trac] #42421: Move "Filter by" strings into labels arrays of registrations

WordPress Trac noreply at wordpress.org
Thu Nov 2 17:47:46 UTC 2017


#42421: Move "Filter by" strings into labels arrays of registrations
-----------------------------+-----------------------------
 Reporter:  johnjamesjacoby  |      Owner:
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:
 Severity:  normal           |   Keywords:  needs-patch
  Focuses:  administration   |
-----------------------------+-----------------------------
 WordPress admin includes a few "Filter by" strings. They are largely used
 in screen-reader text.

 * "Filter by category" is used 2 times
 * "Filter by type" is used 1 time in media
 * "Filter by comment type" is used 1 time in comments
 * "Filter by date" is used once as a generic List Table string

 The first 3 could be included as part of the post type and taxonomy
 labels. The last 1 is in the `months_dropdown()` method in the base list
 table class, and I guess could go either way.

 The benefit of adding these to the labels arrays is these strings can be
 re-used in other places, not repeated, and custom post types and
 taxonomies won't need to hard-code their strings in with their mark-up,
 and can instead register them with the other labels.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42421>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list