WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/12/2019 06:40:16 AM (23 months ago)
Author:
pento
Message:

Coding Standards: Upgrade WPCS to 1.2.1.

This upgrade fixes quite a few false positives, as well as auto-fixing some indenting issues.

Fixes #45956.

File:
1 edited

Legend:

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

    r43571 r44574  
    289289            <input type="hidden" name="delete_option" value="delete" />
    290290            <?php else : ?>
    291         <?php if ( 1 == $go_delete ) : ?>
     291                <?php if ( 1 == $go_delete ) : ?>
    292292            <fieldset><p><legend><?php _e( 'What should be done with content owned by this user?' ); ?></legend></p>
    293293        <?php else : ?>
     
    296296        <ul style="list-style:none;">
    297297            <li><label><input type="radio" id="delete_option0" name="delete_option" value="delete" />
    298             <?php _e( 'Delete all content.' ); ?></label></li>
     298                <?php _e( 'Delete all content.' ); ?></label></li>
    299299            <li><input type="radio" id="delete_option1" name="delete_option" value="reassign" />
    300             <?php
    301             echo '<label for="delete_option1">' . __( 'Attribute all content to:' ) . '</label> ';
    302             wp_dropdown_users(
    303                 array(
    304                     'name'    => 'reassign_user',
    305                     'exclude' => array_diff( $userids, array( $current_user->ID ) ),
    306                     'show'    => 'display_name_with_login',
    307                 )
    308             );
    309             ?>
     300                <?php
     301                echo '<label for="delete_option1">' . __( 'Attribute all content to:' ) . '</label> ';
     302                wp_dropdown_users(
     303                    array(
     304                        'name'    => 'reassign_user',
     305                        'exclude' => array_diff( $userids, array( $current_user->ID ) ),
     306                        'show'    => 'display_name_with_login',
     307                    )
     308                );
     309                ?>
    310310            </li>
    311311        </ul></fieldset>
    312     <?php
     312                <?php
    313313    endif;
    314     /**
    315     * Fires at the end of the delete users form prior to the confirm button.
    316     *
    317     * @since 4.0.0
    318     * @since 4.5.0 The `$userids` parameter was added.
    319     *
    320     * @param WP_User $current_user WP_User object for the current user.
    321     * @param int[]   $userids      Array of IDs for users being deleted.
    322     */
    323     do_action( 'delete_user_form', $current_user, $userids );
    324 ?>
     314            /**
     315            * Fires at the end of the delete users form prior to the confirm button.
     316            *
     317            * @since 4.0.0
     318            * @since 4.5.0 The `$userids` parameter was added.
     319            *
     320            * @param WP_User $current_user WP_User object for the current user.
     321            * @param int[]   $userids      Array of IDs for users being deleted.
     322            */
     323            do_action( 'delete_user_form', $current_user, $userids );
     324            ?>
    325325    <input type="hidden" name="action" value="dodelete" />
    326326            <?php submit_button( __( 'Confirm Deletion' ), 'primary' ); ?>
     
    523523    endif;
    524524
    525 if ( ! empty( $messages ) ) {
    526     foreach ( $messages as $msg ) {
    527         echo $msg;
    528     }
    529 }
    530 ?>
     525        if ( ! empty( $messages ) ) {
     526            foreach ( $messages as $msg ) {
     527                echo $msg;
     528            }
     529        }
     530        ?>
    531531
    532532    <div class="wrap">
Note: See TracChangeset for help on using the changeset viewer.