Ticket #14283: 14283.diff
| File 14283.diff, 1.3 KB (added by ericmann, 2 years ago) |
|---|
-
wp-includes/class-wp-xmlrpc-server.php
644 644 if ( !$result ) 645 645 return(new IXR_Error(500, __("Failed to delete the page."))); 646 646 647 do_action( 'xmlrpc_call_success_wp_deletePage', $page_id, $args ); 648 647 649 return(true); 648 650 } 649 651 … … 1973 1975 1974 1976 logIO('O', "Posted ! ID: $post_ID"); 1975 1977 1978 do_action( 'xmlrpc_call_success_blogger_newPost', $post_ID, $args ); 1979 1976 1980 return $post_ID; 1977 1981 } 1978 1982 … … 2027 2031 2028 2032 $this->attach_uploads( $ID, $post_content ); 2029 2033 2034 do_action( 'xmlrpc_call_success_blogger_editPost', $post_ID, $args ); 2035 2030 2036 return true; 2031 2037 } 2032 2038 … … 2064 2070 if ( !$result ) 2065 2071 return new IXR_Error(500, __('For some strange yet very annoying reason, this post could not be deleted.')); 2066 2072 2073 do_action( 'xmlrpc_call_success_blogger_deletePost', $post_ID, $args ); 2074 2067 2075 return true; 2068 2076 } 2069 2077 … … 2338 2346 2339 2347 logIO('O', "Posted ! ID: $post_ID"); 2340 2348 2349 do_action( 'xmlrpc_call_success_mw_newPost', $post_ID, $args ); 2350 2341 2351 return strval($post_ID); 2342 2352 } 2343 2353 … … 2657 2667 2658 2668 logIO('O',"(MW) Edited ! ID: $post_ID"); 2659 2669 2670 do_action( 'xmlrpc_call_success_mw_editPost', $post_ID, $args ); 2671 2660 2672 return true; 2661 2673 } 2662 2674
