[wp-trac] [WordPress Trac] #33714: Add custom post types to the 'At a Glance' widget

WordPress Trac noreply at wordpress.org
Sat Sep 19 11:43:58 UTC 2015


#33714: Add custom post types to the 'At a Glance' widget
------------------------------------------------+--------------------------
 Reporter:  paulwilde                           |       Owner:
     Type:  enhancement                         |      Status:  new
 Priority:  low                                 |   Milestone:  4.4
Component:  Posts, Post Types                   |     Version:  3.8
 Severity:  normal                              |  Resolution:
 Keywords:  has-patch needs-refresh needs-docs  |     Focuses:  ui,
                                                |  administration
------------------------------------------------+--------------------------

Comment (by GaryJ):

 Replying to [comment:9 netweb]:
 > bbPress has been adding it's post types and taxonomy for quite a while
 now filtering `dashboard_glance_items`
 >
 > A quick test using glance-icons.diff​ sees no noticeable issues for back
 compat for bbPress, both the before and after screenshots testing the
 patch look the same :)

 Thanks for testing. Yes, at this stage, my patch should make everything
 behave the same. What changes though, is that it simplifies how plugins
 can add their own icons.

 For instance, in bbPress, they'd be able to drop:

 {{{
 #dashboard_right_now a.bbp-glance-topic-tags:before {
         content: '\f323';
 }
 }}}

 (and other `#dashboard_right_now` selectors) and change
 [https://github.com/ntwb/bbPress/blob/ce1334374cf9fd165e81da1e5b6b511a2b3b778b/src/includes/admin/metaboxes.php#L50
 this line] to include the `dashicons-before dashicons-tags` classes that
 already exist in WP.

 With simpler plugins that have no other admin styles, this may mean
 avoiding adding a `<style>` element or enqueuing a `.css` just to override
 the default marker.

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


More information about the wp-trac mailing list