[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
Thu Sep 3 20:48:59 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: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------------+-----------------------------
This patch introduces a new argument to the `register_post_type()`
function which will list a custom post type in the 'At a Glance' widget.
A few notes:
- For backwards compatibility reasons the new argument is set to false by
default.
- If no menu_icon argument is set, then it will default to `dashicons-
marker`. This is the same behaviour as previous.
- I've added menu_icon arguments to the core post/page post_types. I'm not
sure if this has any negative implications.
- Removed a small chunk of unnecessary CSS where the dashicons were
hardcoded into the styling rather than using the existing `.dashicons`
classes. (Related #27414)
- `wp_dashboard_quota()` was slightly refactored due to the removal of
some of the CSS.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33714>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list