WordPress.org

Make WordPress Core

Changeset 20158


Ignore:
Timestamp:
03/08/2012 01:16:26 PM (6 years ago)
Author:
westi
Message:

XMLRPC: Add some xmlrpc_call_success_* actions to some of the post creation/deletion calls. Fixes #14283 props ericmann, simonwheatley.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r20157 r20158  
    17931793            return(new IXR_Error(500, __('Failed to delete the page.')));
    17941794
     1795        do_action( 'xmlrpc_call_success_wp_deletePage', $page_id, $args );
     1796
    17951797        return(true);
    17961798    }
     
    31923194        $this->attach_uploads( $post_ID, $post_content );
    31933195
     3196        do_action( 'xmlrpc_call_success_blogger_newPost', $post_ID, $args );
     3197
    31943198        return $post_ID;
    31953199    }
     
    32463250        $this->attach_uploads( $ID, $post_content );
    32473251
     3252        do_action( 'xmlrpc_call_success_blogger_editPost', $post_ID, $args );
     3253
    32483254        return true;
    32493255    }
     
    32823288        if ( !$result )
    32833289            return new IXR_Error(500, __('For some strange yet very annoying reason, this post could not be deleted.'));
     3290
     3291        do_action( 'xmlrpc_call_success_blogger_deletePost', $post_ID, $args );
    32843292
    32853293        return true;
     
    35773585            return new IXR_Error(500, __('Sorry, your entry could not be posted. Something wrong happened.'));
    35783586
     3587        do_action( 'xmlrpc_call_success_mw_newPost', $post_ID, $args );
     3588
    35793589        return strval($post_ID);
    35803590    }
     
    38673877        if ( isset( $content_struct['wp_post_format'] ) )
    38683878            wp_set_post_terms( $post_ID, array( 'post-format-' . $content_struct['wp_post_format'] ), 'post_format' );
     3879
     3880        do_action( 'xmlrpc_call_success_mw_editPost', $post_ID, $args );
    38693881
    38703882        return true;
Note: See TracChangeset for help on using the changeset viewer.