Make WordPress Core


Ignore:
Timestamp:
10/10/2017 05:26:53 AM (8 years ago)
Author:
westonruter
Message:

File Editor: Increase robustness of fatal error checking when saving PHP file edits.

  • Increase PHP execution time limit prior to issuing loopback requests where are themselves given timeouts to ensure PHP file can be reverted.
  • Output scrape messages on success and failure so that absence of either can also be flagged as an error condition.
  • Forward browser's HTTP Basic Auth credentials in loopback requests to admin and home URL.
  • Display more helpful message when loopback request fails.

Amends [41721].
See #21622.
Fixes #42102.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r41797 r41805  
    473473    did_action( 'init' ) && $scripts->add_inline_script( 'wp-theme-plugin-editor', sprintf( 'wp.themePluginEditor.l10n = %s;', wp_json_encode( array(
    474474        'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ),
     475        'saveError' => __( 'Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.' ),
    475476        'lintError' => wp_array_slice_assoc(
    476477            /* translators: %d: error count */
Note: See TracChangeset for help on using the changeset viewer.