Make WordPress Core


Ignore:
Timestamp:
05/24/2011 03:55:03 PM (14 years ago)
Author:
ryan
Message:

Use correct keys

Location:
branches/3.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1

  • branches/3.1/wp-admin/includes/post.php

    r18018 r18020  
    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.