Make WordPress Core

Ticket #35658: 35658.22.diff

File 35658.22.diff, 582 bytes (added by helen, 8 years ago)
  • src/wp-includes/meta.php

     
    10361036        $has_old_sanitize_cb = false;
    10371037
    10381038        if ( is_callable( $passed_args[0] ) ) {
    1039                 $args['sanitize_callback'] = $passed_args[0];
     1039                $args = array(
     1040                        'sanitize_callback' => $passed_args[0],
     1041                );
     1042
    10401043                $has_old_sanitize_cb = true;
    10411044        } else {
    1042                 $args = $passed_args[0];
     1045                $args = (array) $args;
    10431046        }
    10441047
    10451048        if ( isset( $passed_args[1] ) && is_callable( $passed_args[1] ) ) {