Ticket #35658: 35658.22.diff
File 35658.22.diff, 582 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/meta.php
1036 1036 $has_old_sanitize_cb = false; 1037 1037 1038 1038 if ( is_callable( $passed_args[0] ) ) { 1039 $args['sanitize_callback'] = $passed_args[0]; 1039 $args = array( 1040 'sanitize_callback' => $passed_args[0], 1041 ); 1042 1040 1043 $has_old_sanitize_cb = true; 1041 1044 } else { 1042 $args = $passed_args[0];1045 $args = (array) $args; 1043 1046 } 1044 1047 1045 1048 if ( isset( $passed_args[1] ) && is_callable( $passed_args[1] ) ) {