Make WordPress Core

Ticket #38293: 38293.patch

File 38293.patch, 629 bytes (added by johnbillion, 8 years ago)
  • src/wp-admin/includes/post.php

     
    288288                                continue;
    289289                        if ( $meta->post_id != $post_ID )
    290290                                continue;
     291                        if ( is_protected_meta( $meta->meta_key, 'post' ) || ! current_user_can( 'edit_post_meta', $post_ID, $meta->meta_key ) )
     292                                continue;
    291293                        if ( is_protected_meta( $value['key'], 'post' ) || ! current_user_can( 'edit_post_meta', $post_ID, $value['key'] ) )
    292294                                continue;
    293295                        update_meta( $key, $value['key'], $value['value'] );