mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
XMLRPC: Switch the file deletion alias to be deleteFile to more closely make uploadFile.
Fixes #5310 props SergeyBiryukov. Built from https://develop.svn.wordpress.org/trunk@29255 git-svn-id: http://core.svn.wordpress.org/trunk@29038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
673916b39f
commit
1f147d24b1
@ -66,6 +66,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
'wp.deleteCategory' => 'this:wp_deleteCategory',
|
'wp.deleteCategory' => 'this:wp_deleteCategory',
|
||||||
'wp.suggestCategories' => 'this:wp_suggestCategories',
|
'wp.suggestCategories' => 'this:wp_suggestCategories',
|
||||||
'wp.uploadFile' => 'this:mw_newMediaObject', // Alias
|
'wp.uploadFile' => 'this:mw_newMediaObject', // Alias
|
||||||
|
'wp.deleteFile' => 'this:wp_deletePost', // Alias
|
||||||
'wp.getCommentCount' => 'this:wp_getCommentCount',
|
'wp.getCommentCount' => 'this:wp_getCommentCount',
|
||||||
'wp.getPostStatusList' => 'this:wp_getPostStatusList',
|
'wp.getPostStatusList' => 'this:wp_getPostStatusList',
|
||||||
'wp.getPageStatusList' => 'this:wp_getPageStatusList',
|
'wp.getPageStatusList' => 'this:wp_getPageStatusList',
|
||||||
@ -78,7 +79,6 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
'wp.editComment' => 'this:wp_editComment',
|
'wp.editComment' => 'this:wp_editComment',
|
||||||
'wp.newComment' => 'this:wp_newComment',
|
'wp.newComment' => 'this:wp_newComment',
|
||||||
'wp.getCommentStatusList' => 'this:wp_getCommentStatusList',
|
'wp.getCommentStatusList' => 'this:wp_getCommentStatusList',
|
||||||
'wp.deleteMediaItem' => 'this:wp_deletePost', // Alias
|
|
||||||
'wp.getMediaItem' => 'this:wp_getMediaItem',
|
'wp.getMediaItem' => 'this:wp_getMediaItem',
|
||||||
'wp.getMediaLibrary' => 'this:wp_getMediaLibrary',
|
'wp.getMediaLibrary' => 'this:wp_getMediaLibrary',
|
||||||
'wp.getPostFormats' => 'this:wp_getPostFormats',
|
'wp.getPostFormats' => 'this:wp_getPostFormats',
|
||||||
|
Loading…
Reference in New Issue
Block a user