Make WordPress Core

Changeset 45431


Ignore:
Timestamp:
05/26/2019 12:34:09 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Administration: Merge similar "file does not exist" messages in plugin and theme editors.

Props ramiy.
Fixes #47249.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

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

    r45394 r45431  
    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
  • trunk/src/wp-admin/plugin-editor.php

    r45140 r45431  
    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
  • trunk/src/wp-admin/theme-editor.php

    r45140 r45431  
    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    ?>
Note: See TracChangeset for help on using the changeset viewer.