From 772903e5e9f836279827700f60d200146018a87f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 26 Jun 2014 15:20:07 +0000 Subject: [PATCH] XML-RPC: Add wp.deleteMediaItem as an alias to wp_deletePost. props fahmiadib. fixes #5310. git-svn-id: https://develop.svn.wordpress.org/trunk@28849 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-xmlrpc-server.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/class-wp-xmlrpc-server.php b/src/wp-includes/class-wp-xmlrpc-server.php index 1c1e357d60..e8a70ff206 100644 --- a/src/wp-includes/class-wp-xmlrpc-server.php +++ b/src/wp-includes/class-wp-xmlrpc-server.php @@ -78,6 +78,7 @@ class wp_xmlrpc_server extends IXR_Server { 'wp.editComment' => 'this:wp_editComment', 'wp.newComment' => 'this:wp_newComment', 'wp.getCommentStatusList' => 'this:wp_getCommentStatusList', + 'wp.deleteMediaItem' => 'this:wp_deletePost', // Alias 'wp.getMediaItem' => 'this:wp_getMediaItem', 'wp.getMediaLibrary' => 'this:wp_getMediaLibrary', 'wp.getPostFormats' => 'this:wp_getPostFormats',