Make WordPress Core

Ticket #47249: 47249.patch

File 47249.patch, 1.8 KB (added by ramiy, 7 years ago)
  • wp-admin/includes/file.php

     
    460460
    461461        // Ensure file is real.
    462462        if ( ! is_file( $real_file ) ) {
    463                 return new WP_Error( 'file_does_not_exist', __( 'No such file exists! Double check the name and try again.' ) );
     463                return new WP_Error( 'file_does_not_exist', __( 'File does not exist! Please double check the name and try again.' ) );
    464464        }
    465465
    466466        // Ensure file extension is allowed.
  • wp-admin/plugin-editor.php

     
    105105        $editable_extensions = wp_get_plugin_file_editable_extensions( $plugin );
    106106
    107107if ( ! is_file( $real_file ) ) {
    108         wp_die( sprintf( '<p>%s</p>', __( 'No such file exists! Double check the name and try again.' ) ) );
     108        wp_die( sprintf( '<p>%s</p>', __( 'File does not exist! Please double check the name and try again.' ) ) );
    109109} else {
    110110        // Get the extension of the file
    111111        if ( preg_match( '/\.([^.]+)$/', $real_file, $matches ) ) {
  • wp-admin/theme-editor.php

     
    272272
    273273<?php
    274274if ( $error ) :
    275         echo '<div class="error"><p>' . __( 'Oops, no such file exists! Double check the name and try again, merci.' ) . '</p></div>';
     275        echo '<div class="error"><p>' . __( 'File does not exist! Please double check the name and try again.' ) . '</p></div>';
    276276else :
    277277        ?>
    278278        <form name="template" id="template" action="theme-editor.php" method="post">