Make WordPress Core


Ignore:
Timestamp:
03/25/2004 08:18:20 PM (22 years ago)
Author:
saxmatt
Message:

Additional plugin API hooks, extending moderation scheme to more fully cover trackbacks and pingbacks, cleanup of XML-RPC file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r1005 r1012  
    379379        } // end if moving from draft/private to published
    380380        if ($post_status == 'publish') {
     381            do_action('publish_post', $post_ID);
    381382            // Trackback time.
    382383            $to_ping = trim($wpdb->get_var("SELECT to_ping FROM $tableposts WHERE ID = $post_ID"));
     
    408409        }
    409410        header ('Location: ' . $location);
     411        do_action('edit_post', $post_ID);
    410412        break;
    411413
     
    449451        if (strstr($sendback, 'post.php')) $sendback = get_settings('siteurl') .'/wp-admin/post.php';
    450452        header ('Location: ' . $sendback);
    451 
     453        do_action('delete_post', $post_ID);
    452454        break;
    453455
     
    677679        if (!empty($referredby)) header('Location: ' . $referredby);
    678680        else header ("Location: edit.php?p=$comment_post_ID&c=1#comments");
    679 
     681        do_action('edit_comment', $post_ID);
    680682        break;
    681683
Note: See TracChangeset for help on using the changeset viewer.