Changeset 41805 for trunk/src/wp-includes/load.php
- Timestamp:
- 10/10/2017 05:26:53 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/load.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/load.php
r41721 r41805 1127 1127 1128 1128 if ( get_transient( 'scrape_key_' . $key ) !== $nonce ) { 1129 echo "###### begin_scraped_error:$key ######";1129 echo "###### wp_scraping_result_start:$key ######"; 1130 1130 echo wp_json_encode( array( 1131 1131 'code' => 'scrape_nonce_failure', 1132 1132 'message' => __( 'Scrape nonce check failed. Please try again.' ), 1133 1133 ) ); 1134 echo "###### wp_scraping_result_end:$key ######"; 1134 1135 die(); 1135 1136 } … … 1146 1147 function wp_finalize_scraping_edited_file_errors( $scrape_key ) { 1147 1148 $error = error_get_last(); 1148 if ( empty( $error ) ) { 1149 return; 1150 } 1151 if ( ! in_array( $error['type'], array( E_CORE_ERROR, E_COMPILE_ERROR, E_ERROR, E_PARSE, E_USER_ERROR, E_RECOVERABLE_ERROR ), true ) ) { 1152 return; 1153 } 1154 $error = str_replace( ABSPATH, '', $error ); 1155 echo "###### begin_scraped_error:$scrape_key ######"; 1156 echo wp_json_encode( $error ); 1157 } 1149 echo "\n###### wp_scraping_result_start:$scrape_key ######\n"; 1150 if ( ! empty( $error ) && in_array( $error['type'], array( E_CORE_ERROR, E_COMPILE_ERROR, E_ERROR, E_PARSE, E_USER_ERROR, E_RECOVERABLE_ERROR ), true ) ) { 1151 $error = str_replace( ABSPATH, '', $error ); 1152 echo wp_json_encode( $error ); 1153 } else { 1154 echo wp_json_encode( true ); 1155 } 1156 echo "\n###### wp_scraping_result_end:$scrape_key ######\n"; 1157 }
Note: See TracChangeset
for help on using the changeset viewer.