Make WordPress Core

Changeset 61036


Ignore:
Timestamp:
10/21/2025 02:00:33 PM (11 months ago)
Author:
jorbin
Message:

Coding Standards: Fix blank spaces.

Nice to meet you, where you been?

See #63168.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block-processor.php

    r61035 r61036  
    934934                                $name_length = 1 + strspn( $text, 'abcdefghijklmnopqrstuvwxyz0123456789-_', $name_at + 1 );
    935935                        } else {
    936                                 $name_at          = $namespace_at;
    937                                 $name_length      = $namespace_length;
     936                                $name_at     = $namespace_at;
     937                                $name_length = $namespace_length;
    938938                        }
    939939
  • trunk/src/wp-includes/comment.php

    r60987 r61036  
    41214121                '_wp_note_status',
    41224122                array(
    4123                         'type'          => 'string',
    4124                         'description'   => __( 'Note resolution status' ),
    4125                         'single'        => true,
    4126                         'show_in_rest'  => array(
     4123                        'type'         => 'string',
     4124                        'description'  => __( 'Note resolution status' ),
     4125                        'single'       => true,
     4126                        'show_in_rest' => array(
    41274127                                'schema' => array(
    41284128                                        'type' => 'string',
  • trunk/src/wp-includes/compat-utf8.php

    r61005 r61036  
    536536
    537537                // All convertible code points are not greater than U+FF.
    538                 $byte2 = ord( $utf8_text[ $at + 1 ] );
     538                $byte2      = ord( $utf8_text[ $at + 1 ] );
    539539                $code_point = ( ( $byte1 & 0x1F ) << 6 ) | ( ( $byte2 & 0x3F ) );
    540540                if ( $code_point > 0xFF ) {
  • trunk/src/wp-includes/post.php

    r61029 r61036  
    369369                'wp_template',
    370370                array(
    371                         'labels'                          => array(
     371                        'labels'                  => array(
    372372                                'name'                  => _x( 'Templates', 'post type general name' ),
    373373                                'singular_name'         => _x( 'Template', 'post type singular name' ),
     
    390390                                'item_updated'          => __( 'Template updated.' ),
    391391                        ),
    392                         'description'                     => __( 'Templates to include in your theme.' ),
    393                         'public'                          => false,
    394                         '_builtin'                        => true, /* internal use only. don't use this when registering your own post type. */
    395                         '_edit_link'                      => $template_edit_link, /* internal use only. don't use this when registering your own post type. */
    396                         'has_archive'                     => false,
    397                         'show_ui'                         => false,
    398                         'show_in_menu'                    => false,
    399                         'show_in_rest'                    => true,
    400                         'rewrite'                         => false,
    401                         'rest_base'                       => 'wp_template',
    402                         'rest_controller_class'           => 'WP_REST_Posts_Controller',
    403                         'late_route_registration'         => true,
    404                         'capability_type'                 => array( 'template', 'templates' ),
    405                         'capabilities'                    => array(
     392                        'description'             => __( 'Templates to include in your theme.' ),
     393                        'public'                  => false,
     394                        '_builtin'                => true, /* internal use only. don't use this when registering your own post type. */
     395                        '_edit_link'              => $template_edit_link, /* internal use only. don't use this when registering your own post type. */
     396                        'has_archive'             => false,
     397                        'show_ui'                 => false,
     398                        'show_in_menu'            => false,
     399                        'show_in_rest'            => true,
     400                        'rewrite'                 => false,
     401                        'rest_base'               => 'wp_template',
     402                        'rest_controller_class'   => 'WP_REST_Posts_Controller',
     403                        'late_route_registration' => true,
     404                        'capability_type'         => array( 'template', 'templates' ),
     405                        'capabilities'            => array(
    406406                                'create_posts'           => 'edit_theme_options',
    407407                                'delete_posts'           => 'edit_theme_options',
     
    417417                                'read_private_posts'     => 'edit_theme_options',
    418418                        ),
    419                         'map_meta_cap'                    => true,
    420                         'supports'                        => array(
     419                        'map_meta_cap'            => true,
     420                        'supports'                => array(
    421421                                'title',
    422422                                'slug',
  • trunk/src/wp-includes/rest-api.php

    r61032 r61036  
    486486
    487487        // Abilities.
    488         $abilities_run_controller  = new WP_REST_Abilities_V1_Run_Controller();
     488        $abilities_run_controller = new WP_REST_Abilities_V1_Run_Controller();
    489489        $abilities_run_controller->register_routes();
    490490        $abilities_list_controller = new WP_REST_Abilities_V1_List_Controller();
Note: See TracChangeset for help on using the changeset viewer.