Make WordPress Core

Changeset 17996 for trunk


Ignore:
Timestamp:
05/22/2011 11:21:34 PM (13 years ago)
Author:
ryan
Message:

Use correct keys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r17994 r17996  
    201201            if ( $meta->post_id != $post_ID )
    202202                continue;
    203             if ( is_protected_meta( $key ) )
     203            if ( is_protected_meta( $value['key'] ) )
    204204                continue;
    205205            update_meta( $key, $value['key'], $value['value'] );
     
    213213            if ( $meta->post_id != $post_ID )
    214214                continue;
    215             if ( is_protected_meta( $key ) )
     215            if ( is_protected_meta( $meta->meta_key ) )
    216216                continue;
    217217            delete_meta( $key );
Note: See TracChangeset for help on using the changeset viewer.