Make WordPress Core

Changeset 11946


Ignore:
Timestamp:
09/17/2009 09:05:29 PM (15 years ago)
Author:
westi
Message:

Don't pass undefined vars to action hooks. See #2659.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/meta.php

    r11943 r11946  
    7171    }
    7272
    73     do_action( "update_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $meta_value );
     73    do_action( "update_{$meta_type}_meta", $object_id, $meta_key, $meta_value );
    7474
    7575    $wpdb->update( $table, $data, $where );
    7676    wp_cache_delete($object_id, $meta_type . '_meta');
    7777
    78     do_action( "updated_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $meta_value );
     78    do_action( "updated_{$meta_type}_meta", $object_id, $meta_key, $meta_value );
    7979
    8080    return true;
     
    108108    wp_cache_delete($object_id, $meta_type . '_meta');
    109109
    110     do_action( "deleted_{$meta_type}_meta", $meta_id, $object_id, $meta_key, $meta_value );
     110    do_action( "deleted_{$meta_type}_meta", $object_id, $meta_key, $meta_value );
    111111
    112112    return true;
Note: See TracChangeset for help on using the changeset viewer.