Make WordPress Core


Ignore:
Timestamp:
08/15/2018 06:22:00 AM (8 years ago)
Author:
pento
Message:

Coding Standards: Prepare for upgrading WPCS to 1.0.0.

In order to get the best result when running phpcbf across the codebase, there are some manual tweaks we need to make.

These fall into three categories:

  • Fixing incorrectly indented code which has flow-on effects when auto-fixing.
  • Tweaking the layout of inline PHP inside HTML tags.
  • Moving more complex inline PHP inside HTML tags, to execute earlier.

See #44600.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r43090 r43569  
    311311                        <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $plugin_file ); ?>" />
    312312                        <label for="<?php echo $checkbox_id; ?>" class="screen-reader-text">
    313                                                                                 <?php
    314                                                                                 /* translators: %s: plugin name */
    315                                                                                 printf(
    316                                                                                         __( 'Select %s' ),
    317                                                                                         $plugin_data->Name
    318                                                                                 );
    319                                 ?>
    320                                 </label>
    321                         </td>
    322                         <td class="plugin-title"><p>
    323                                 <?php echo $icon; ?>
    324                                 <strong><?php echo $plugin_data->Name; ?></strong>
    325                                 <?php
    326                                 /* translators: 1: plugin version, 2: new version */
     313                        <?php
     314                                /* translators: %s: plugin name */
    327315                                printf(
    328                                         __( 'You have version %1$s installed. Update to %2$s.' ),
    329                                         $plugin_data->Version,
    330                                         $plugin_data->update->new_version
     316                                        __( 'Select %s' ),
     317                                        $plugin_data->Name
    331318                                );
    332                                 echo ' ' . $details . $compat . $upgrade_notice;
    333319                        ?>
    334                         </p></td>
    335                 </tr>
     320                        </label>
     321                </td>
     322                <td class="plugin-title"><p>
     323                        <?php echo $icon; ?>
     324                        <strong><?php echo $plugin_data->Name; ?></strong>
     325                        <?php
     326                        /* translators: 1: plugin version, 2: new version */
     327                        printf(
     328                                __( 'You have version %1$s installed. Update to %2$s.' ),
     329                                $plugin_data->Version,
     330                                $plugin_data->update->new_version
     331                        );
     332                        echo ' ' . $details . $compat . $upgrade_notice;
     333                ?>
     334                </p></td>
     335        </tr>
    336336                <?php
    337337}
     
    387387                        <input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $stylesheet ); ?>" />
    388388                        <label for="<?php echo $checkbox_id; ?>" class="screen-reader-text">
    389                                                                                 <?php
    390                                                                                 /* translators: %s: theme name */
    391                                                                                 printf(
    392                                                                                         __( 'Select %s' ),
    393                                                                                         $theme->display( 'Name' )
    394                                                                                 );
    395                                 ?>
    396                                 </label>
    397                         </td>
    398                         <td class="plugin-title"><p>
    399                                 <img src="<?php echo esc_url( $theme->get_screenshot() ); ?>" width="85" height="64" class="updates-table-screenshot" alt="" />
    400                                 <strong><?php echo $theme->display( 'Name' ); ?></strong>
    401                                 <?php
    402                                 /* translators: 1: theme version, 2: new version */
     389                        <?php
     390                                /* translators: %s: theme name */
    403391                                printf(
    404                                         __( 'You have version %1$s installed. Update to %2$s.' ),
    405                                         $theme->display( 'Version' ),
    406                                         $theme->update['new_version']
     392                                        __( 'Select %s' ),
     393                                        $theme->display( 'Name' )
    407394                                );
    408395                        ?>
    409                         </p></td>
    410                 </tr>
     396                        </label>
     397                </td>
     398                <td class="plugin-title"><p>
     399                        <img src="<?php echo esc_url( $theme->get_screenshot() ); ?>" width="85" height="64" class="updates-table-screenshot" alt="" />
     400                        <strong><?php echo $theme->display( 'Name' ); ?></strong>
     401                        <?php
     402                        /* translators: 1: theme version, 2: new version */
     403                        printf(
     404                                __( 'You have version %1$s installed. Update to %2$s.' ),
     405                                $theme->display( 'Version' ),
     406                                $theme->update['new_version']
     407                        );
     408                ?>
     409                </p></td>
     410        </tr>
    411411                <?php
    412412}
Note: See TracChangeset for help on using the changeset viewer.