Ticket #20216: 20216b.patch
| File 20216b.patch, 868 bytes (added by ramiy, 15 months ago) |
|---|
-
class-wp-atom-server.php
499 499 */ 500 500 function get_attachment($postID = null) { 501 501 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.' ) ); 503 503 504 504 if ( !isset($postID) ) { 505 505 $this->get_attachments(); … … 520 520 $type = $this->get_accepted_content_type(); 521 521 522 522 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.' ) ); 524 524 525 525 $fp = fopen("php://input", "rb"); 526 526 $bits = null;