Make WordPress Core

Changeset 56521


Ignore:
Timestamp:
09/06/2023 09:31:48 AM (13 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Correct equals sign alignment in various files.

This resolves a few WPCS warnings:

Equals sign not aligned with surrounding statements

so that the output of composer format is clean.

Follow-up to [56276], [56302].

Props jrf.
See #59161, #58831.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-upgrader.php

    r56276 r56521  
    186186     */
    187187    public function generic_strings() {
    188         $this->strings['bad_request']       = __( 'Invalid data provided.' );
    189         $this->strings['fs_unavailable']    = __( 'Could not access filesystem.' );
    190         $this->strings['fs_error']          = __( 'Filesystem error.' );
    191         $this->strings['fs_no_root_dir']    = __( 'Unable to locate WordPress root directory.' );
     188        $this->strings['bad_request']    = __( 'Invalid data provided.' );
     189        $this->strings['fs_unavailable'] = __( 'Could not access filesystem.' );
     190        $this->strings['fs_error']       = __( 'Filesystem error.' );
     191        $this->strings['fs_no_root_dir'] = __( 'Unable to locate WordPress root directory.' );
    192192        /* translators: %s: Directory name. */
    193193        $this->strings['fs_no_content_dir'] = sprintf( __( 'Unable to locate WordPress content directory (%s).' ), 'wp-content' );
  • trunk/src/wp-admin/site-editor.php

    r56302 r56521  
    2424}
    2525
    26 $is_template_part = isset( $_GET['postType'] ) && 'wp_template_part' === sanitize_key( $_GET['postType'] );
    27 $is_template_part_path = isset( $_GET['path'] ) && 'wp_template_partall' === sanitize_key( $_GET['path'] );
     26$is_template_part        = isset( $_GET['postType'] ) && 'wp_template_part' === sanitize_key( $_GET['postType'] );
     27$is_template_part_path   = isset( $_GET['path'] ) && 'wp_template_partall' === sanitize_key( $_GET['path'] );
    2828$is_template_part_editor = $is_template_part || $is_template_part_path;
    2929
Note: See TracChangeset for help on using the changeset viewer.