Make WordPress Core

Ticket #5310: 5310_patch.diff

File 5310_patch.diff, 652 bytes (added by fahmiadib, 10 years ago)
  • wp-includes/class-wp-xmlrpc-server.php

    diff --git wp-includes/class-wp-xmlrpc-server.php wp-includes/class-wp-xmlrpc-server.php
    index 42b879f..eb0a4b3 100644
    class wp_xmlrpc_server extends IXR_Server { 
    7878                        'wp.editComment'                => 'this:wp_editComment',
    7979                        'wp.newComment'                 => 'this:wp_newComment',
    8080                        'wp.getCommentStatusList' => 'this:wp_getCommentStatusList',
     81                        'wp.deleteMediaItem'    => 'this:wp_deletePost',                // Alias
    8182                        'wp.getMediaItem'               => 'this:wp_getMediaItem',
    8283                        'wp.getMediaLibrary'    => 'this:wp_getMediaLibrary',
    8384                        'wp.getPostFormats'     => 'this:wp_getPostFormats',