WordPress.org

Make WordPress Core

Ticket #20216: 20216b.patch

File 20216b.patch, 868 bytes (added by ramiy, 6 years ago)
  • class-wp-atom-server.php

     
    499499         */
    500500        function get_attachment($postID = null) {
    501501                if ( !current_user_can( 'upload_files' ) )
    502                         $this->auth_required( __( 'Sorry, you do not have permission to upload files.' ) );
     502                        $this->auth_required( __( 'You do not have permission to upload files.' ) );
    503503
    504504                if ( !isset($postID) ) {
    505505                        $this->get_attachments();
     
    520520                $type = $this->get_accepted_content_type();
    521521
    522522                if ( !current_user_can('upload_files') )
    523                         $this->auth_required(__('You do not have permission to upload files.'));
     523                        $this->auth_required( __( 'You do not have permission to upload files.' ) );
    524524
    525525                $fp = fopen("php://input", "rb");
    526526                $bits = null;