Ticket #15653: 15653.diff
| File 15653.diff, 5.2 KB (added by , 15 years ago) |
|---|
-
wp-includes/class-simplepie.php
1831 1831 } 1832 1832 1833 1833 /** 1834 * Return the error message for the occur ed error1834 * Return the error message for the occurred error 1835 1835 * 1836 1836 * @access public 1837 1837 * @return string Error message -
wp-app.php
712 712 $filetype = wp_check_filetype($location); 713 713 714 714 if ( !isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']) ) 715 $this->internal_error(__('Error oc urred while accessing post metadata for file location.'));715 $this->internal_error(__('Error occurred while accessing post metadata for file location.')); 716 716 717 717 // delete file 718 718 @unlink($location); … … 749 749 $filetype = wp_check_filetype($location); 750 750 751 751 if ( !isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']) ) 752 $this->internal_error(__('Error oc urred while accessing post metadata for file location.'));752 $this->internal_error(__('Error occurred while accessing post metadata for file location.')); 753 753 754 754 status_header('200'); 755 755 header('Content-Type: ' . $entry['post_mime_type']); … … 801 801 $location = "{$upload_dir['basedir']}/{$location}"; 802 802 803 803 if (!isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext'])) 804 $this->internal_error(__('Error oc urred while accessing post metadata for file location.'));804 $this->internal_error(__('Error occurred while accessing post metadata for file location.')); 805 805 806 806 $fp = fopen("php://input", "rb"); 807 807 $localfp = fopen($location, "w+"); -
wp-admin/admin-ajax.php
508 508 $tag = wp_insert_term($_POST['tag-name'], $taxonomy, $_POST ); 509 509 510 510 if ( !$tag || is_wp_error($tag) || (!$tag = get_term( $tag['term_id'], $taxonomy )) ) { 511 $message = __('An error has occur ed. Please reload the page and try again.');511 $message = __('An error has occurred. Please reload the page and try again.'); 512 512 if ( is_wp_error($tag) && $tag->get_error_message() ) 513 513 $message = $tag->get_error_message(); 514 514 … … 1343 1343 $sidebar_id = $_POST['sidebar']; 1344 1344 $multi_number = !empty($_POST['multi_number']) ? (int) $_POST['multi_number'] : 0; 1345 1345 $settings = isset($_POST['widget-' . $id_base]) && is_array($_POST['widget-' . $id_base]) ? $_POST['widget-' . $id_base] : false; 1346 $error = '<p>' . __('An error has occur ed. Please reload the page and try again.') . '</p>';1346 $error = '<p>' . __('An error has occurred. Please reload the page and try again.') . '</p>'; 1347 1347 1348 1348 $sidebars = wp_get_sidebars_widgets(); 1349 1349 $sidebar = isset($sidebars[$sidebar_id]) ? $sidebars[$sidebar_id] : array(); -
wp-admin/includes/class-wp-upgrader.php
1081 1081 1082 1082 function add_strings() { 1083 1083 $this->upgrader->strings['skin_upgrade_start'] = __('The update process is starting. This process may take a while on some hosts, so please be patient.'); 1084 $this->upgrader->strings['skin_update_failed_error'] = __('An error occur ed while updating %1$s: <strong>%2$s</strong>.');1084 $this->upgrader->strings['skin_update_failed_error'] = __('An error occurred while updating %1$s: <strong>%2$s</strong>.'); 1085 1085 $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.'); 1086 1086 $this->upgrader->strings['skin_update_successful'] = __('%1$s updated successfully.').' <a onclick="%2$s" href="#" class="hide-if-no-js"><span>'.__('Show Details').'</span><span class="hidden">'.__('Hide Details').'</span>.</a>'; 1087 1087 $this->upgrader->strings['skin_upgrade_end'] = __('All updates have been completed.'); -
wp-admin/includes/theme.php
389 389 if ( ! $res ) { 390 390 $request = wp_remote_post('http://api.wordpress.org/themes/info/1.0/', array( 'body' => array('action' => $action, 'request' => serialize($args))) ); 391 391 if ( is_wp_error($request) ) { 392 $res = new WP_Error('themes_api_failed', __('An Unexpected HTTP Error occur ed during the API request.</p> <p><a href="?" onclick="document.location.reload(); return false;">Try again</a>'), $request->get_error_message() );392 $res = new WP_Error('themes_api_failed', __('An Unexpected HTTP Error occurred during the API request.</p> <p><a href="?" onclick="document.location.reload(); return false;">Try again</a>'), $request->get_error_message() ); 393 393 } else { 394 394 $res = unserialize($request['body']); 395 395 if ( ! $res ) 396 $res = new WP_Error('themes_api_failed', __('An unknown error occur ed'), $request['body']);396 $res = new WP_Error('themes_api_failed', __('An unknown error occurred'), $request['body']); 397 397 } 398 398 } 399 399 //var_dump(array($args, $res));