WordPress.org

Make WordPress Core

Changeset 14308


Ignore:
Timestamp:
04/29/2010 07:26:40 PM (10 years ago)
Author:
ryan
Message:

Pass unserializeds value to meta actions.

File:
1 edited

Legend:

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

    r14305 r14308  
    5151        return false;
    5252
     53    $_meta_value = $meta_value;
    5354    $meta_value = maybe_serialize( stripslashes_deep($meta_value) );
    5455
     
    6465        clean_user_cache($object_id);
    6566
    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 );
    6768
    6869    return true;
     
    109110        return add_metadata($meta_type, $object_id, $meta_key, $meta_value);
    110111
     112    $_meta_value = $meta_value;
    111113    $meta_value = maybe_serialize( stripslashes_deep($meta_value) );
    112114
     
    119121    }
    120122
    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 );
    122124
    123125    $wpdb->update( $table, $data, $where );
     
    127129        clean_user_cache($object_id);
    128130
    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 );
    130132
    131133    return true;
Note: See TracChangeset for help on using the changeset viewer.