From 6ef909e45ea0c20fca03b03d8fcb66b6e007166a Mon Sep 17 00:00:00 2001 From: westi Date: Thu, 17 Sep 2009 21:05:29 +0000 Subject: [PATCH] Don't pass undefined vars to action hooks. See #2659. git-svn-id: http://svn.automattic.com/wordpress/trunk@11946 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/meta.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/meta.php b/wp-includes/meta.php index 597bc9cb38..75aa00747e 100644 --- a/wp-includes/meta.php +++ b/wp-includes/meta.php @@ -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", $meta_id, $object_id, $meta_key, $meta_value ); + do_action( "update_{$meta_type}_meta", $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", $meta_id, $object_id, $meta_key, $meta_value ); + do_action( "updated_{$meta_type}_meta", $object_id, $meta_key, $meta_value ); return true; } @@ -107,7 +107,7 @@ function delete_metadata($meta_type, $object_id, $meta_key, $meta_value = '') { wp_cache_delete($object_id, $meta_type . '_meta'); - do_action( "deleted_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $meta_value ); + do_action( "deleted_{$meta_type}_meta", $object_id, $meta_key, $meta_value ); return true; }