Taxonomy: add taxonomy for user pattern categories.
Adds a `wp_pattern_category` taxonomy linked to the `wp-block` object. Props glendaviesnz, kebbet, desrosj, mamaduka. Fixes #59379. Built from https://develop.svn.wordpress.org/trunk@56642 git-svn-id: http://core.svn.wordpress.org/trunk@56154 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
091e385f8d
commit
9ba50bb623
|
@ -222,6 +222,27 @@ function create_initial_taxonomies() {
|
||||||
'show_in_rest' => false,
|
'show_in_rest' => false,
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
register_taxonomy(
|
||||||
|
'wp_pattern_category',
|
||||||
|
array( 'wp_block' ),
|
||||||
|
array(
|
||||||
|
'public' => true,
|
||||||
|
'publicly_queryable' => false,
|
||||||
|
'hierarchical' => false,
|
||||||
|
'labels' => array(
|
||||||
|
'name' => _x( 'Pattern Categories', 'taxonomy general name' ),
|
||||||
|
'singular_name' => _x( 'Pattern Category', 'taxonomy singular name' ),
|
||||||
|
),
|
||||||
|
'query_var' => false,
|
||||||
|
'rewrite' => false,
|
||||||
|
'show_ui' => true,
|
||||||
|
'_builtin' => true,
|
||||||
|
'show_in_nav_menus' => false,
|
||||||
|
'show_in_rest' => true,
|
||||||
|
'show_admin_column' => true,
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.4-alpha-56641';
|
$wp_version = '6.4-alpha-56642';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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…
Reference in New Issue