Ticket #14766: wp-includes-meta-filters-revised.patch
File wp-includes-meta-filters-revised.patch, 655 bytes (added by , 14 years ago) |
---|
-
wp-includes/meta.php
245 245 246 246 $check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, $single ); 247 247 if ( null !== $check ) { 248 if ( !is_array( $check ) ) 249 return $check; 250 elseif ( $single ) 251 return maybe_unserialize( $check[0] ); 248 if ( $single && is_array( $check ) ) 249 return $check[0]; 252 250 else 253 return array_map( 'maybe_unserialize', $check );251 return $check; 254 252 } 255 253 256 254 $meta_cache = wp_cache_get($object_id, $meta_type . '_meta');