[wp-trac] [WordPress Trac] #34637: CPT menu icon leakage
WordPress Trac
noreply at wordpress.org
Mon Nov 9 17:54:14 UTC 2015
#34637: CPT menu icon leakage
--------------------------+------------------
Reporter: obenland | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: Menus | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------
Comment (by obenland):
Doing some more testing I noticed how there is no de facto default menu
icon for CPT. The default icon just happens to be whatever icon was
defined for the CPT before.
{{{
#!php
<?php
add_action('init', function(){
register_post_type( 'weird', array(
'label' => 'weird',
'public' => true,
) );
});
}}}
On a trunk install, the above will use the page's icon, since it will be
output right after it.
@DrewAPicture suggested to use the page icon for hierarchical CPTs and the
post icon for non-hierarchical ones.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34637#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list