Make WordPress Core

Ticket #49376: 49376.diff

File 49376.diff, 3.4 KB (added by desrosj, 6 years ago)
  • phpcs.xml.dist

     
    270270                </properties>
    271271        </rule>
    272272
     273        <!-- Enforce no parenthesis for language constructs, and only one space immediately after.
     274                Including this rule is temporary until it is moved from the WordPress-Extra ruleset to
     275                the WordPress-Core ruleset upstream.
     276        -->
     277        <rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/>
     278
    273279        <!-- Assignments in while conditions are a valid method of looping over iterables. -->
    274280        <rule ref="WordPress.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition">
    275281                <exclude-pattern>*</exclude-pattern>
  • src/wp-admin/includes/meta-boxes.php

     
    427427                        echo "<a class='submitdelete deletion' href='" . get_delete_post_link( $post->ID ) . "'>" . __( 'Move to Trash' ) . '</a>';
    428428                } else {
    429429                        $delete_ays = ! MEDIA_TRASH ? " onclick='return showNotice.warn();'" : '';
    430                         echo  "<a class='submitdelete deletion'$delete_ays href='" . get_delete_post_link( $post->ID, null, true ) . "'>" . __( 'Delete Permanently' ) . '</a>';
     430                        echo "<a class='submitdelete deletion'$delete_ays href='" . get_delete_post_link( $post->ID, null, true ) . "'>" . __( 'Delete Permanently' ) . '</a>';
    431431                }
    432432        }
    433433        ?>
  • src/wp-admin/includes/translation-install.php

     
    2121        require ABSPATH . WPINC . '/version.php';
    2222
    2323        if ( ! in_array( $type, array( 'plugins', 'themes', 'core' ) ) ) {
    24                 return  new WP_Error( 'invalid_type', __( 'Invalid translation type.' ) );
     24                return new WP_Error( 'invalid_type', __( 'Invalid translation type.' ) );
    2525        }
    2626
    2727        /**
  • src/wp-includes/functions.php

     
    52005200function is_lighttpd_before_150() {
    52015201        $server_parts    = explode( '/', isset( $_SERVER['SERVER_SOFTWARE'] ) ? $_SERVER['SERVER_SOFTWARE'] : '' );
    52025202        $server_parts[1] = isset( $server_parts[1] ) ? $server_parts[1] : '';
    5203         return  'lighttpd' == $server_parts[0] && -1 == version_compare( $server_parts[1], '1.5.0' );
     5203        return 'lighttpd' == $server_parts[0] && -1 == version_compare( $server_parts[1], '1.5.0' );
    52045204}
    52055205
    52065206/**
  • src/wp-includes/shortcodes.php

     
    258258        // Also, see shortcode_unautop() and shortcode.js.
    259259
    260260        // phpcs:disable Squiz.Strings.ConcatenationSpacing.PaddingFound -- don't remove regex indentation
    261         return
    262                 '\\['                                // Opening bracket.
     261        return '\\['                                // Opening bracket.
    263262                . '(\\[?)'                           // 1: Optional second opening bracket for escaping shortcodes: [[tag]].
    264263                . "($tagregexp)"                     // 2: Shortcode name.
    265264                . '(?![\\w-])'                       // Not followed by word character or hyphen.