Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

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

    r47198 r47219  
    3232        } elseif ( isset( $_REQUEST['delete_comments'] ) ) {
    3333                $comment_ids = $_REQUEST['delete_comments'];
    34                 $doaction    = ( $_REQUEST['action'] != -1 ) ? $_REQUEST['action'] : $_REQUEST['action2'];
     34                $doaction    = ( -1 != $_REQUEST['action'] ) ? $_REQUEST['action'] : $_REQUEST['action2'];
    3535        } elseif ( isset( $_REQUEST['ids'] ) ) {
    3636                $comment_ids = array_map( 'absint', explode( ',', $_REQUEST['ids'] ) );
Note: See TracChangeset for help on using the changeset viewer.