mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-19 13:07:49 +00:00
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. Built from https://develop.svn.wordpress.org/trunk@47196 git-svn-id: http://core.svn.wordpress.org/trunk@46996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9bb7789f07
commit
39e133bce8
@ -30,6 +30,7 @@ function create_initial_post_types() {
|
|||||||
'capability_type' => 'post',
|
'capability_type' => 'post',
|
||||||
'map_meta_cap' => true,
|
'map_meta_cap' => true,
|
||||||
'menu_position' => 5,
|
'menu_position' => 5,
|
||||||
|
'menu_icon' => 'dashicons-admin-post',
|
||||||
'hierarchical' => false,
|
'hierarchical' => false,
|
||||||
'rewrite' => false,
|
'rewrite' => false,
|
||||||
'query_var' => false,
|
'query_var' => false,
|
||||||
@ -54,6 +55,7 @@ function create_initial_post_types() {
|
|||||||
'capability_type' => 'page',
|
'capability_type' => 'page',
|
||||||
'map_meta_cap' => true,
|
'map_meta_cap' => true,
|
||||||
'menu_position' => 20,
|
'menu_position' => 20,
|
||||||
|
'menu_icon' => 'dashicons-admin-page',
|
||||||
'hierarchical' => true,
|
'hierarchical' => true,
|
||||||
'rewrite' => false,
|
'rewrite' => false,
|
||||||
'query_var' => false,
|
'query_var' => false,
|
||||||
@ -85,6 +87,7 @@ function create_initial_post_types() {
|
|||||||
'create_posts' => 'upload_files',
|
'create_posts' => 'upload_files',
|
||||||
),
|
),
|
||||||
'map_meta_cap' => true,
|
'map_meta_cap' => true,
|
||||||
|
'menu_icon' => 'dashicons-admin-media',
|
||||||
'hierarchical' => false,
|
'hierarchical' => false,
|
||||||
'rewrite' => false,
|
'rewrite' => false,
|
||||||
'query_var' => false,
|
'query_var' => false,
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-47195';
|
$wp_version = '5.4-alpha-47196';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user