Make WordPress Core


Ignore:
Timestamp:
07/01/2019 12:50:14 PM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.

See #47632.

File:
1 edited

Legend:

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

    r45140 r45583  
    6363        $comment_id = absint( $_GET['c'] );
    6464
    65         if ( ! $comment = get_comment( $comment_id ) ) {
     65        $comment = get_comment( $comment_id );
     66        if ( ! $comment ) {
    6667            comment_footer_die( __( 'Invalid comment ID.' ) . sprintf( ' <a href="%s">' . __( 'Go back' ) . '</a>.', 'javascript:history.go(-1)' ) );
    6768        }
     
    8990        $comment_id = absint( $_GET['c'] );
    9091
    91         if ( ! $comment = get_comment( $comment_id ) ) {
     92        $comment = get_comment( $comment_id );
     93        if ( ! $comment ) {
    9294            wp_redirect( admin_url( 'edit-comments.php?error=1' ) );
    9395            die();
     
    261263        $noredir = isset( $_REQUEST['noredir'] );
    262264
    263         if ( ! $comment = get_comment( $comment_id ) ) {
     265        $comment = get_comment( $comment_id );
     266        if ( ! $comment ) {
    264267            comment_footer_die( __( 'Invalid comment ID.' ) . sprintf( ' <a href="%s">' . __( 'Go back' ) . '</a>.', 'edit-comments.php' ) );
    265268        }
Note: See TracChangeset for help on using the changeset viewer.