WordPress.org

Make WordPress Core

Opened 12 months ago

Last modified 12 months ago

#38844 new enhancement

Post Type Objects and Menu Icons

Reported by: michael.ecklund Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6.1
Component: Posts, Post Types Keywords: has-patch
Focuses: ui, administration Cc:

Description

When using get_post_type_object(); the core Post Types don't have a menu_icon available.

For example:

$page_object = get_post_type_object( 'page' );

echo $page_object->menu_icon;

When executing the above code, I would expect that to output the same icon used in the administration menu on the left. This goes for all core Post Types.

Attachments (1)

38844.patch (845 bytes) - added by SergeyBiryukov 12 months ago.

Download all attachments as: .zip

Change History (2)

#1 @SergeyBiryukov
12 months ago

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.