WordPress.org

Make WordPress Core

Ticket #15653: 15653.diff

File 15653.diff, 5.2 KB (added by aldenta, 7 years ago)

Fix misspellings

  • wp-includes/class-simplepie.php

     
    18311831        }
    18321832
    18331833        /**
    1834          * Return the error message for the occured error
     1834         * Return the error message for the occurred error
    18351835         *
    18361836         * @access public
    18371837         * @return string Error message
  • wp-app.php

     
    712712                $filetype = wp_check_filetype($location);
    713713
    714714                if ( !isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']) )
    715                         $this->internal_error(__('Error ocurred while accessing post metadata for file location.'));
     715                        $this->internal_error(__('Error occurred while accessing post metadata for file location.'));
    716716
    717717                // delete file
    718718                @unlink($location);
     
    749749                $filetype = wp_check_filetype($location);
    750750
    751751                if ( !isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']) )
    752                         $this->internal_error(__('Error ocurred while accessing post metadata for file location.'));
     752                        $this->internal_error(__('Error occurred while accessing post metadata for file location.'));
    753753
    754754                status_header('200');
    755755                header('Content-Type: ' . $entry['post_mime_type']);
     
    801801                $location = "{$upload_dir['basedir']}/{$location}";
    802802
    803803                if (!isset($location) || 'attachment' != $entry['post_type'] || empty($filetype['ext']))
    804                         $this->internal_error(__('Error ocurred while accessing post metadata for file location.'));
     804                        $this->internal_error(__('Error occurred while accessing post metadata for file location.'));
    805805
    806806                $fp = fopen("php://input", "rb");
    807807                $localfp = fopen($location, "w+");
  • wp-admin/admin-ajax.php

     
    508508        $tag = wp_insert_term($_POST['tag-name'], $taxonomy, $_POST );
    509509
    510510        if ( !$tag || is_wp_error($tag) || (!$tag = get_term( $tag['term_id'], $taxonomy )) ) {
    511                 $message = __('An error has occured. Please reload the page and try again.');
     511                $message = __('An error has occurred. Please reload the page and try again.');
    512512                if ( is_wp_error($tag) && $tag->get_error_message() )
    513513                        $message = $tag->get_error_message();
    514514
     
    13431343        $sidebar_id = $_POST['sidebar'];
    13441344        $multi_number = !empty($_POST['multi_number']) ? (int) $_POST['multi_number'] : 0;
    13451345        $settings = isset($_POST['widget-' . $id_base]) && is_array($_POST['widget-' . $id_base]) ? $_POST['widget-' . $id_base] : false;
    1346         $error = '<p>' . __('An error has occured. Please reload the page and try again.') . '</p>';
     1346        $error = '<p>' . __('An error has occurred. Please reload the page and try again.') . '</p>';
    13471347
    13481348        $sidebars = wp_get_sidebars_widgets();
    13491349        $sidebar = isset($sidebars[$sidebar_id]) ? $sidebars[$sidebar_id] : array();
  • wp-admin/includes/class-wp-upgrader.php

     
    10811081
    10821082        function add_strings() {
    10831083                $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 occured 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>.');
    10851085                $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.');
    10861086                $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>';
    10871087                $this->upgrader->strings['skin_upgrade_end'] = __('All updates have been completed.');
  • wp-admin/includes/theme.php

     
    389389        if ( ! $res ) {
    390390                $request = wp_remote_post('http://api.wordpress.org/themes/info/1.0/', array( 'body' => array('action' => $action, 'request' => serialize($args))) );
    391391                if ( is_wp_error($request) ) {
    392                         $res = new WP_Error('themes_api_failed', __('An Unexpected HTTP Error occured 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() );
    393393                } else {
    394394                        $res = unserialize($request['body']);
    395395                        if ( ! $res )
    396                         $res = new WP_Error('themes_api_failed', __('An unknown error occured'), $request['body']);
     396                        $res = new WP_Error('themes_api_failed', __('An unknown error occurred'), $request['body']);
    397397                }
    398398        }
    399399        //var_dump(array($args, $res));