WordPress.org

Make WordPress Core

Ticket #11465: 11465.patch

File 11465.patch, 291 bytes (added by collinsinternet, 7 years ago)

Changed from add_post_meta to update_post_meta to resolve issue of duplication.

  • post.php

     
    757757
    758758                $metakey = wp_slash( $metakey );
    759759
    760                 return add_post_meta( $post_ID, $metakey, $metavalue );
     760                return update_post_meta( $post_ID, $metakey, $metavalue );
    761761        }
    762762
    763763        return false;