Fix argument order. Props mdawaffe. fixes #11125

git-svn-id: http://svn.automattic.com/wordpress/trunk@12173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-11-12 14:43:15 +00:00
parent 3df56a9360
commit 742349b291
1 changed files with 3 additions and 3 deletions

View File

@ -70,12 +70,12 @@ function update_metadata($meta_type, $object_id, $meta_key, $meta_value, $prev_v
$where['meta_value'] = $prev_value;
}
do_action( "update_{$meta_type}_meta", $object_id, $meta_key, $meta_value, $meta_id );
do_action( "update_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $meta_value );
$wpdb->update( $table, $data, $where );
wp_cache_delete($object_id, $meta_type . '_meta');
do_action( "updated_{$meta_type}_meta", $object_id, $meta_key, $meta_value, $meta_id );
do_action( "updated_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $meta_value );
return true;
}
@ -115,7 +115,7 @@ function delete_metadata($meta_type, $object_id, $meta_key, $meta_value = '', $d
wp_cache_delete($object_id, $meta_type . '_meta');
do_action( "deleted_{$meta_type}_meta", $object_id, $meta_key, $meta_value, $meta_ids );
do_action( "deleted_{$meta_type}_meta", $meta_ids, $object_id, $meta_key, $meta_value );
return true;
}