Ticket #16806: 16806.diff

File 16806.diff, 568 bytes (added by ericmann, 2 years ago)

Normalize strings

Line 
1Index: wp-includes/class-wp-xmlrpc-server.php
2===================================================================
3--- wp-includes/class-wp-xmlrpc-server.php      (revision 17517)
4+++ wp-includes/class-wp-xmlrpc-server.php      (working copy)
5@@ -1522,7 +1522,7 @@
6                        return $this->error;
7 
8                if ( !current_user_can( 'upload_files' ) )
9-                       return new IXR_Error( 403, __( 'You are not allowed to upload files on this site.' ) );
10+                       return new IXR_Error( 403, __( 'You are not allowed to upload files to this site.' ) );
11 
12                do_action('xmlrpc_call', 'wp.getMediaItem');
13