Make WordPress Core


Ignore:
Timestamp:
03/19/2010 09:29:21 PM (12 years ago)
Author:
nacin
Message:

Remove redundant isset() and empty() checks.

File:
1 edited

Legend:

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

    r13247 r13770  
    9696    wp_redirect( $redirect_to );
    9797    exit;
    98 } elseif ( isset($_GET['_wp_http_referer']) && ! empty($_GET['_wp_http_referer']) ) {
     98} elseif ( ! empty($_GET['_wp_http_referer']) ) {
    9999     wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
    100100     exit;
     
    108108require_once('admin-header.php');
    109109
    110 $mode = ( ! isset($_GET['mode']) || empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']);
     110$mode = ( empty($_GET['mode']) ) ? 'detail' : esc_attr($_GET['mode']);
    111111
    112112$comment_status = isset($_REQUEST['comment_status']) ? $_REQUEST['comment_status'] : 'all';
Note: See TracChangeset for help on using the changeset viewer.