WordPress.org

Make WordPress Core

Ticket #8827: wp-app-post-hooks.diff

File wp-app-post-hooks.diff, 673 bytes (added by znarfor, 6 years ago)
  • wp-app.php

     
    475475                // this could affect our ability to send back the right headers 
    476476                @wp_set_post_categories($postID, $post_category); 
    477477 
     478                do_action('app_create_post', $postID, $entry); 
     479 
    478480                $output = $this->get_entry($postID); 
    479481 
    480482                log_app('function',"create_post($postID)"); 
     
    549551 
    550552                $result = wp_update_post($postdata); 
    551553 
     554                do_action('app_put_post', $ID, $parsed); 
     555 
    552556                if (!$result) { 
    553557                        $this->internal_error(__('For some strange yet very annoying reason, this post could not be edited.')); 
    554558                }