Make WordPress Core


Ignore:
Timestamp:
10/28/2011 03:48:44 PM (13 years ago)
Author:
ryan
Message:

Avoid 'Only variables should be passed by reference' warnings. Props SergeyBiryukov. see #18975

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r19007 r19074  
    861861        ) );
    862862    } else { // Update?
    863         $mid = (int) array_pop( $var_by_ref = array_keys($_POST['meta']) );
     863        $var_by_ref = array_keys( $_POST['meta'] );
     864        $mid = (int) array_pop( $var_by_ref );
    864865        $key = stripslashes( $_POST['meta'][$mid]['key'] );
    865866        $value = stripslashes( $_POST['meta'][$mid]['value'] );
Note: See TracChangeset for help on using the changeset viewer.