Changeset 14308
- Timestamp:
- 04/29/2010 07:26:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/meta.php
r14305 r14308 51 51 return false; 52 52 53 $_meta_value = $meta_value; 53 54 $meta_value = maybe_serialize( stripslashes_deep($meta_value) ); 54 55 … … 64 65 clean_user_cache($object_id); 65 66 66 do_action( "added_{$meta_type}_meta", $wpdb->insert_id, $object_id, $meta_key, $ meta_value );67 do_action( "added_{$meta_type}_meta", $wpdb->insert_id, $object_id, $meta_key, $_meta_value ); 67 68 68 69 return true; … … 109 110 return add_metadata($meta_type, $object_id, $meta_key, $meta_value); 110 111 112 $_meta_value = $meta_value; 111 113 $meta_value = maybe_serialize( stripslashes_deep($meta_value) ); 112 114 … … 119 121 } 120 122 121 do_action( "update_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $ meta_value );123 do_action( "update_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value ); 122 124 123 125 $wpdb->update( $table, $data, $where ); … … 127 129 clean_user_cache($object_id); 128 130 129 do_action( "updated_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $ meta_value );131 do_action( "updated_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $_meta_value ); 130 132 131 133 return true;
Note: See TracChangeset
for help on using the changeset viewer.