Ticket #15465: add_meta.diff
| File add_meta.diff, 660 bytes (added by cyberhobo, 3 years ago) |
|---|
-
wp-admin/includes/post.php
586 586 587 587 wp_cache_delete($post_ID, 'post_meta'); 588 588 $wpdb->insert( $wpdb->postmeta, array( 'post_id' => $post_ID, 'meta_key' => $metakey, 'meta_value' => $metavalue ) ); 589 do_action( 'added_postmeta', $wpdb->insert_id, $post_ID, $metakey, $metavalue ); 589 $meta_id = $wpdb->insert_id; 590 do_action( 'added_postmeta', $meta_id, $post_ID, $metakey, $metavalue ); 590 591 591 return $ wpdb->insert_id;592 return $meta_id; 592 593 } 593 594 return false; 594 595 } // add_meta