diff --git "a/src/wp-admin/includes/ajax-actions.php" "b/src/wp-admin/includes/ajax-actions.php"
index 06b6e90e55..60e1c9a5b8 100644
"a
|
"b
|
function wp_ajax_add_meta() { |
1636 | 1636 | gmdate( __( 'g:i a' ), $now ) |
1637 | 1637 | ); |
1638 | 1638 | |
| 1639 | /* this is to avoid adding the meta twice */ |
| 1640 | $_tmp_post = $_POST; |
| 1641 | unset( $_POST[ 'metakeyselect' ] ); |
| 1642 | unset( $_POST[ 'metakeyinput' ] ); |
| 1643 | |
1639 | 1644 | $pid = edit_post( $post_data ); |
| 1645 | |
| 1646 | $_POST = $_tmp_post; |
1640 | 1647 | |
1641 | 1648 | if ( $pid ) { |
1642 | 1649 | if ( is_wp_error( $pid ) ) { |