WordPress.org

Make WordPress Core

Ticket #20929: functions.wp_list_filter.patch

File functions.wp_list_filter.patch, 435 bytes (added by wpsmith, 22 months ago)
  • wp-includes/functions.php

     
    24962496 
    24972497                $matched = 0; 
    24982498                foreach ( $args as $m_key => $m_value ) { 
    2499                         if ( $m_value == $to_match[ $m_key ] ) 
     2499                        if ( array_key_exists( $m_key, $to_match ) && $m_value == $to_match[ $m_key ] ) 
    25002500                                $matched++; 
    25012501                } 
    25022502