Make WordPress Core

Changeset 27219


Ignore:
Timestamp:
02/21/2014 02:45:06 PM (11 years ago)
Author:
nacin
Message:

Simplify error in validate_file_to_edit().

props MattyRob for initial patch.
fixes #25924.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r27029 r27219  
    178178    switch ( $code ) {
    179179        case 1 :
    180             wp_die( __('Sorry, can’t edit files with “..” in the name. If you are trying to edit a file in your WordPress home directory, you can just type the name of the file in.' ));
     180            wp_die( __( 'Sorry, that file cannot be edited.' ) );
    181181
    182182        //case 2 :
     
    184184
    185185        case 3 :
    186             wp_die( __('Sorry, that file cannot be edited.' ));
     186            wp_die( __( 'Sorry, that file cannot be edited.' ) );
    187187    }
    188188}
Note: See TracChangeset for help on using the changeset viewer.