Make WordPress Core

Changeset 52128


Ignore:
Timestamp:
11/10/2021 07:54:51 PM (3 years ago)
Author:
desrosj
Message:

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.

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

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

    r52069 r52128  
    20852085 * Sanitizes global styles user content removing unsafe rules.
    20862086 *
     2087 * @since 5.9.0
     2088 *
    20872089 * @param string $data Post content to filter.
    20882090 * @return string Filtered post content with unsafe rules removed.
  • trunk/src/wp-includes/post.php

    r52110 r52128  
    450450        'wp_global_styles',
    451451        array(
    452             'label'        => __( 'Global Styles' ),
    453             'description'  => __( 'Post type for storing user design tokens.' ),
     452            'label'        => _x( 'Global Styles', 'post type general name' ),
     453            'description'  => __( 'Global styles to include in themes.' ),
    454454            'public'       => false,
    455455            '_builtin'     => true, /* internal use only. don't use this when registering your own post type. */
     
    500500                'items_list'            => __( 'Navigation Menus list' ),
    501501            ),
    502             'description'           => __( 'Navigation menus.' ),
    503502            'public'                => false,
    504503            '_builtin'              => true, /* internal use only. don't use this when registering your own post type. */
  • trunk/src/wp-includes/rest-api.php

    r52079 r52128  
    295295
    296296    // Block Renderer.
    297     $controller = new WP_REST_Block_Renderer_Controller;
     297    $controller = new WP_REST_Block_Renderer_Controller();
    298298    $controller->register_routes();
    299299
Note: See TracChangeset for help on using the changeset viewer.