Make WordPress Core

Ticket #21450: 21450.patch

File 21450.patch, 572 bytes (added by sc0ttkclark, 13 years ago)

Add new_post action when !$update

  • trunk/wp-includes/post.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    27952795                $post_after = get_post($post_ID);
    27962796                do_action( 'post_updated', $post_ID, $post_after, $post_before);
    27972797        }
     2798        else
     2799                do_action('new_post', $post_ID, $post);
    27982800
    27992801        do_action('save_post', $post_ID, $post);
    28002802        do_action('wp_insert_post', $post_ID, $post);