[wp-trac] [WordPress Trac] #22828: Remove Duplicate Array Check

WordPress Trac noreply at wordpress.org
Sat Dec 8 18:33:52 UTC 2012


#22828: Remove Duplicate Array Check
-----------------------------+--------------------------
 Reporter:  miqrogroove      |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Performance
  Version:  3.4.2            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 I just stumbled across this silly bit of code in function
 get_core_updates()

 {{{
 if ( !isset( $from_api->updates ) || !is_array( $from_api->updates ) )
 return false;
 $updates = $from_api->updates;
 if ( !is_array( $updates ) ) return false;
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22828>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list