Make WordPress Core


Ignore:
Timestamp:
02/05/2020 10:38:11 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Posts, Post Types: Add default menu_icon values for built-in post types.

This allows the icons to be retrieved via get_post_type_object().

Props m.usama.masood, michael.ecklund, SergeyBiryukov.
Fixes #38844.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r47194 r47196  
    3131            'map_meta_cap'          => true,
    3232            'menu_position'         => 5,
     33            'menu_icon'             => 'dashicons-admin-post',
    3334            'hierarchical'          => false,
    3435            'rewrite'               => false,
     
    5556            'map_meta_cap'          => true,
    5657            'menu_position'         => 20,
     58            'menu_icon'             => 'dashicons-admin-page',
    5759            'hierarchical'          => true,
    5860            'rewrite'               => false,
     
    8688            ),
    8789            'map_meta_cap'          => true,
     90            'menu_icon'             => 'dashicons-admin-media',
    8891            'hierarchical'          => false,
    8992            'rewrite'               => false,
Note: See TracChangeset for help on using the changeset viewer.