Make WordPress Core


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

Remove redundant isset() and empty() checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/menu-header.php

    r13579 r13770  
    5555                }
    5656
    57                 if ( isset($item[4]) && ! empty($item[4]) )
     57                if ( ! empty($item[4]) )
    5858                        $class[] = $item[4];
    5959
    6060                $class = $class ? ' class="' . join( ' ', $class ) . '"' : '';
    6161                $tabindex = ' tabindex="1"';
    62                 $id = isset($item[5]) && ! empty($item[5]) ? ' id="' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '"' : '';
     62                $id = ! empty($item[5]) ? ' id="' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '"' : '';
    6363                $img = '';
    64                 if ( isset($item[6]) && ! empty($item[6]) ) {
     64                if ( ! empty($item[6]) ) {
    6565                        if ( 'div' === $item[6] )
    6666                                $img = '<br />';
Note: See TracChangeset for help on using the changeset viewer.