WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/26/2017 11:56:25 PM (20 months ago)
Author:
pento
Message:

General: Fix some precision alignment formatting warnings.

The WPCS WordPress.WhiteSpace.PrecisionAlignment rule throws warnings for a bunch of code that will likely cause issues for wpcbf. Fixing these manually beforehand gives us better auto-fixed results later.

See #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r42217 r42228  
    4242 */
    4343if ( post_type_supports( $post_type, 'editor' ) && ! wp_is_mobile() &&
    44      ! ( $is_IE && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) &&
    45      apply_filters( 'wp_editor_expand', true, $post_type ) ) {
     44    ! ( $is_IE && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) &&
     45    apply_filters( 'wp_editor_expand', true, $post_type ) ) {
    4646
    4747    wp_enqueue_script('editor-expand');
     
    145145
    146146$messages['post'] = array(
    147      0 => '', // Unused. Messages start at index 1.
    148      1 => __( 'Post updated.' ) . $view_post_link_html,
    149      2 => __( 'Custom field updated.' ),
    150      3 => __( 'Custom field deleted.' ),
    151      4 => __( 'Post updated.' ),
     147    0 => '', // Unused. Messages start at index 1.
     148    1 => __( 'Post updated.' ) . $view_post_link_html,
     149    2 => __( 'Custom field updated.' ),
     150    3 => __( 'Custom field deleted.' ),
     151    4 => __( 'Post updated.' ),
    152152    /* translators: %s: date and time of the revision */
    153      5 => isset($_GET['revision']) ? sprintf( __( 'Post restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
    154      6 => __( 'Post published.' ) . $view_post_link_html,
    155      7 => __( 'Post saved.' ),
    156      8 => __( 'Post submitted.' ) . $preview_post_link_html,
    157      9 => sprintf( __( 'Post scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_post_link_html,
     153    5 => isset($_GET['revision']) ? sprintf( __( 'Post restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
     154    6 => __( 'Post published.' ) . $view_post_link_html,
     155    7 => __( 'Post saved.' ),
     156    8 => __( 'Post submitted.' ) . $preview_post_link_html,
     157    9 => sprintf( __( 'Post scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_post_link_html,
    158158    10 => __( 'Post draft updated.' ) . $preview_post_link_html,
    159159);
    160160$messages['page'] = array(
    161      0 => '', // Unused. Messages start at index 1.
    162      1 => __( 'Page updated.' ) . $view_page_link_html,
    163      2 => __( 'Custom field updated.' ),
    164      3 => __( 'Custom field deleted.' ),
    165      4 => __( 'Page updated.' ),
     161    0 => '', // Unused. Messages start at index 1.
     162    1 => __( 'Page updated.' ) . $view_page_link_html,
     163    2 => __( 'Custom field updated.' ),
     164    3 => __( 'Custom field deleted.' ),
     165    4 => __( 'Page updated.' ),
    166166    /* translators: %s: date and time of the revision */
    167      5 => isset($_GET['revision']) ? sprintf( __( 'Page restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
    168      6 => __( 'Page published.' ) . $view_page_link_html,
    169      7 => __( 'Page saved.' ),
    170      8 => __( 'Page submitted.' ) . $preview_page_link_html,
    171      9 => sprintf( __( 'Page scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_page_link_html,
     167    5 => isset($_GET['revision']) ? sprintf( __( 'Page restored to revision from %s.' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
     168    6 => __( 'Page published.' ) . $view_page_link_html,
     169    7 => __( 'Page saved.' ),
     170    8 => __( 'Page submitted.' ) . $preview_page_link_html,
     171    9 => sprintf( __( 'Page scheduled for: %s.' ), '<strong>' . $scheduled_date . '</strong>' ) . $scheduled_page_link_html,
    172172    10 => __( 'Page draft updated.' ) . $preview_page_link_html,
    173173);
Note: See TracChangeset for help on using the changeset viewer.