Make WordPress Core

Ticket #38158: 38158.patch

File 38158.patch, 569 bytes (added by ramiy, 9 years ago)
  • wp-admin/includes/ajax-actions.php

     
    20152015                        echo wp_json_encode( array(
    20162016                                'success' => false,
    20172017                                'data'    => array(
    2018                                         'message'  => __( "You don't have permission to attach files to this post." ),
     2018                                        'message'  => __( 'Sorry, you are not allowed to attach files to this post.' ),
    20192019                                        'filename' => $_FILES['async-upload']['name'],
    20202020                                )
    20212021                        ) );