[wp-trac] [WordPress Trac] #33714: Introduce argument to register_post_type which adds a custom post type to the 'At a Glance' widget

WordPress Trac noreply at wordpress.org
Fri Sep 4 01:12:27 UTC 2015


#33714: Introduce argument to register_post_type which adds a custom post type to
the 'At a Glance' widget
-----------------------------------------+---------------------------------
 Reporter:  paulwilde                    |       Owner:
     Type:  enhancement                  |      Status:  new
 Priority:  low                          |   Milestone:  Awaiting Review
Component:  Posts, Post Types            |     Version:  3.8
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:  ui, administration
-----------------------------------------+---------------------------------
Changes (by johnbillion):

 * keywords:  has-patch => has-patch reporter-feedback


Comment:

 A few issues:

  1. The `menu_icon` argument can be not only a dashicon name, but also a
 URL, a `data` URI, or `none`.
  2. `$text = number_format_i18n( $num_posts->publish ) . ' ' . $label;`
 is, unfortunately, not localisable. We're really missing a post type label
 here (hence the existing `$text = _n( '%s Post', '%s Posts',
 $num_posts->publish );`).
  3. The post types should appear in the same order they appear in the main
 admin menu (according to the `menu_position` argument).

 Can you upload a patch which doesn't include the unrelated changes to the
 storage quota section?

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


More information about the wp-trac mailing list