mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
New menu UI. Props filosofo. see #12713
git-svn-id: https://develop.svn.wordpress.org/trunk@14248 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2190,7 +2190,7 @@ function wp_insert_post($postarr = array(), $wp_error = false) {
|
||||
$data = stripslashes_deep( $data );
|
||||
$where = array( 'ID' => $post_ID );
|
||||
|
||||
if ($update) {
|
||||
if ( $update ) {
|
||||
do_action( 'pre_post_update', $post_ID );
|
||||
if ( false === $wpdb->update( $wpdb->posts, $data, $where ) ) {
|
||||
if ( $wp_error )
|
||||
@@ -2265,7 +2265,7 @@ function wp_insert_post($postarr = array(), $wp_error = false) {
|
||||
|
||||
wp_transition_post_status($data['post_status'], $previous_status, $post);
|
||||
|
||||
if ( $update)
|
||||
if ( $update )
|
||||
do_action('edit_post', $post_ID, $post);
|
||||
|
||||
do_action('save_post', $post_ID, $post);
|
||||
|
||||
Reference in New Issue
Block a user