mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 07:58:35 +01:00
General: Minor fixes to Global Style related code.
Follow up to [52041,52049-52052,52054,52106,52108-52110]. Props swisspidy, TobiasBg, spacedmonkey, kebbet, oandregal. See #54336. Built from https://develop.svn.wordpress.org/trunk@52128 git-svn-id: http://core.svn.wordpress.org/trunk@51720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
62fc5121f2
commit
d77367a962
@ -2084,6 +2084,8 @@ function wp_filter_post_kses( $data ) {
|
|||||||
/**
|
/**
|
||||||
* Sanitizes global styles user content removing unsafe rules.
|
* Sanitizes global styles user content removing unsafe rules.
|
||||||
*
|
*
|
||||||
|
* @since 5.9.0
|
||||||
|
*
|
||||||
* @param string $data Post content to filter.
|
* @param string $data Post content to filter.
|
||||||
* @return string Filtered post content with unsafe rules removed.
|
* @return string Filtered post content with unsafe rules removed.
|
||||||
*/
|
*/
|
||||||
|
@ -449,8 +449,8 @@ function create_initial_post_types() {
|
|||||||
register_post_type(
|
register_post_type(
|
||||||
'wp_global_styles',
|
'wp_global_styles',
|
||||||
array(
|
array(
|
||||||
'label' => __( 'Global Styles' ),
|
'label' => _x( 'Global Styles', 'post type general name' ),
|
||||||
'description' => __( 'Post type for storing user design tokens.' ),
|
'description' => __( 'Global styles to include in themes.' ),
|
||||||
'public' => false,
|
'public' => false,
|
||||||
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
|
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
|
||||||
'show_ui' => false,
|
'show_ui' => false,
|
||||||
@ -499,7 +499,6 @@ function create_initial_post_types() {
|
|||||||
'items_list_navigation' => __( 'Navigation Menus list navigation' ),
|
'items_list_navigation' => __( 'Navigation Menus list navigation' ),
|
||||||
'items_list' => __( 'Navigation Menus list' ),
|
'items_list' => __( 'Navigation Menus list' ),
|
||||||
),
|
),
|
||||||
'description' => __( 'Navigation menus.' ),
|
|
||||||
'public' => false,
|
'public' => false,
|
||||||
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
|
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
|
||||||
'has_archive' => false,
|
'has_archive' => false,
|
||||||
|
@ -294,7 +294,7 @@ function create_initial_rest_routes() {
|
|||||||
$controller->register_routes();
|
$controller->register_routes();
|
||||||
|
|
||||||
// Block Renderer.
|
// Block Renderer.
|
||||||
$controller = new WP_REST_Block_Renderer_Controller;
|
$controller = new WP_REST_Block_Renderer_Controller();
|
||||||
$controller->register_routes();
|
$controller->register_routes();
|
||||||
|
|
||||||
// Block Types.
|
// Block Types.
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.9-alpha-52127';
|
$wp_version = '5.9-alpha-52128';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
Block a user