diff --git a/wp-includes/class-wp-block-processor.php b/wp-includes/class-wp-block-processor.php index 5fa33ac941..06dc4478e3 100644 --- a/wp-includes/class-wp-block-processor.php +++ b/wp-includes/class-wp-block-processor.php @@ -933,8 +933,8 @@ class WP_Block_Processor { $name_length = 1 + strspn( $text, 'abcdefghijklmnopqrstuvwxyz0123456789-_', $name_at + 1 ); } else { - $name_at = $namespace_at; - $name_length = $namespace_length; + $name_at = $namespace_at; + $name_length = $namespace_length; } if ( $name_at + $name_length >= $end ) { diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 8ae1c84325..9399889768 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -4120,10 +4120,10 @@ function wp_create_initial_comment_meta() { 'comment', '_wp_note_status', array( - 'type' => 'string', - 'description' => __( 'Note resolution status' ), - 'single' => true, - 'show_in_rest' => array( + 'type' => 'string', + 'description' => __( 'Note resolution status' ), + 'single' => true, + 'show_in_rest' => array( 'schema' => array( 'type' => 'string', 'enum' => array( 'resolved', 'reopen' ), diff --git a/wp-includes/compat-utf8.php b/wp-includes/compat-utf8.php index c8bc61b0af..20ebdfc314 100644 --- a/wp-includes/compat-utf8.php +++ b/wp-includes/compat-utf8.php @@ -535,7 +535,7 @@ function _wp_utf8_decode_fallback( $utf8_text ) { } // All convertible code points are not greater than U+FF. - $byte2 = ord( $utf8_text[ $at + 1 ] ); + $byte2 = ord( $utf8_text[ $at + 1 ] ); $code_point = ( ( $byte1 & 0x1F ) << 6 ) | ( ( $byte2 & 0x3F ) ); if ( $code_point > 0xFF ) { goto flush_sub_part; diff --git a/wp-includes/post.php b/wp-includes/post.php index d73088f0ed..3940519d4d 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -368,7 +368,7 @@ function create_initial_post_types() { register_post_type( 'wp_template', array( - 'labels' => array( + 'labels' => array( 'name' => _x( 'Templates', 'post type general name' ), 'singular_name' => _x( 'Template', 'post type singular name' ), 'add_new' => __( 'Add Template' ), @@ -389,20 +389,20 @@ function create_initial_post_types() { 'items_list' => __( 'Templates list' ), 'item_updated' => __( 'Template updated.' ), ), - 'description' => __( 'Templates to include in your theme.' ), - 'public' => false, - '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ - '_edit_link' => $template_edit_link, /* internal use only. don't use this when registering your own post type. */ - 'has_archive' => false, - 'show_ui' => false, - 'show_in_menu' => false, - 'show_in_rest' => true, - 'rewrite' => false, - 'rest_base' => 'wp_template', - 'rest_controller_class' => 'WP_REST_Posts_Controller', - 'late_route_registration' => true, - 'capability_type' => array( 'template', 'templates' ), - 'capabilities' => array( + 'description' => __( 'Templates to include in your theme.' ), + 'public' => false, + '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ + '_edit_link' => $template_edit_link, /* internal use only. don't use this when registering your own post type. */ + 'has_archive' => false, + 'show_ui' => false, + 'show_in_menu' => false, + 'show_in_rest' => true, + 'rewrite' => false, + 'rest_base' => 'wp_template', + 'rest_controller_class' => 'WP_REST_Posts_Controller', + 'late_route_registration' => true, + 'capability_type' => array( 'template', 'templates' ), + 'capabilities' => array( 'create_posts' => 'edit_theme_options', 'delete_posts' => 'edit_theme_options', 'delete_others_posts' => 'edit_theme_options', @@ -416,8 +416,8 @@ function create_initial_post_types() { 'read' => 'edit_theme_options', 'read_private_posts' => 'edit_theme_options', ), - 'map_meta_cap' => true, - 'supports' => array( + 'map_meta_cap' => true, + 'supports' => array( 'title', 'slug', 'excerpt', diff --git a/wp-includes/rest-api.php b/wp-includes/rest-api.php index 30ae8bc22e..a505517015 100644 --- a/wp-includes/rest-api.php +++ b/wp-includes/rest-api.php @@ -485,7 +485,7 @@ function create_initial_rest_routes() { $font_collections_controller->register_routes(); // Abilities. - $abilities_run_controller = new WP_REST_Abilities_V1_Run_Controller(); + $abilities_run_controller = new WP_REST_Abilities_V1_Run_Controller(); $abilities_run_controller->register_routes(); $abilities_list_controller = new WP_REST_Abilities_V1_List_Controller(); $abilities_list_controller->register_routes(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 4e54dc762b..8866fb94eb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-61035'; +$wp_version = '6.9-alpha-61036'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.