Ticket #47249: 47249.patch
| File 47249.patch, 1.8 KB (added by , 7 years ago) |
|---|
-
wp-admin/includes/file.php
460 460 461 461 // Ensure file is real. 462 462 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.' ) ); 464 464 } 465 465 466 466 // Ensure file extension is allowed. -
wp-admin/plugin-editor.php
105 105 $editable_extensions = wp_get_plugin_file_editable_extensions( $plugin ); 106 106 107 107 if ( ! 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.' ) ) ); 109 109 } else { 110 110 // Get the extension of the file 111 111 if ( preg_match( '/\.([^.]+)$/', $real_file, $matches ) ) { -
wp-admin/theme-editor.php
272 272 273 273 <?php 274 274 if ( $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>'; 276 276 else : 277 277 ?> 278 278 <form name="template" id="template" action="theme-editor.php" method="post">
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)