WordPress.org

Make WordPress Core

Ticket #38489: fix-spelling-wp-includes.2.diff

File fix-spelling-wp-includes.2.diff, 16.0 KB (added by ottok, 5 years ago)
  • src/wp-includes/cache.php

     
    254254 * This function is deprecated. Use wp_cache_switch_to_blog() instead of this
    255255 * function when preparing the cache for a blog switch. For clearing the cache
    256256 * during unit tests, consider using wp_cache_init(). wp_cache_init() is not
    257  * recommended outside of unit tests as the performance penality for using it is
     257 * recommended outside of unit tests as the performance penalty for using it is
    258258 * high.
    259259 *
    260260 * @since 2.6.0
  • src/wp-includes/class-pop3.php

     
    430430        if(!$this->is_ok($reply))
    431431        {
    432432            //  The POP3 RSET command -never- gives a -ERR
    433             //  response - if it ever does, something truely
     433            //  response - if it ever does, something truly
    434434            //  wild is going on.
    435435
    436436            $this->ERROR = "POP3 reset: " . _("Error ") . "[$reply]";
  • src/wp-includes/class-walker-page.php

     
    4949         *
    5050         * @param string $output Passed by reference. Used to append additional content.
    5151         * @param int    $depth  Optional. Depth of page. Used for padding. Default 0.
    52          * @param array  $args   Optional. Arguments for outputing the next level.
     52         * @param array  $args   Optional. Arguments for outputting the next level.
    5353         *                       Default empty array.
    5454         */
    5555        public function start_lvl( &$output, $depth = 0, $args = array() ) {
  • src/wp-includes/class-wp-customize-control.php

     
    457457        /**
    458458         * Render the control's content.
    459459         *
    460          * Allows the content to be overriden without having to rewrite the wrapper in `$this::render()`.
     460         * Allows the content to be overridden without having to rewrite the wrapper in `$this::render()`.
    461461         *
    462462         * Supports basic input types `text`, `checkbox`, `textarea`, `radio`, `select` and `dropdown-pages`.
    463463         * Additional input types such as `email`, `url`, `number`, `hidden` and `date` are supported implicitly.
  • src/wp-includes/class-wp-widget.php

     
    1010/**
    1111 * Core base class extended to register widgets.
    1212 *
    13  * This class must be extended for each widget, and WP_Widget::widget() must be overriden.
     13 * This class must be extended for each widget, and WP_Widget::widget() must be overridden.
    1414 *
    1515 * If adding widget options, WP_Widget::update() and WP_Widget::form() should also be overridden.
    1616 *
     
    104104        public $updated = false;
    105105
    106106        //
    107         // Member functions that must be overriden by subclasses.
     107        // Member functions that must be overridden by subclasses.
    108108        //
    109109
    110110        /**
  • src/wp-includes/css/editor.css

     
    13211321
    13221322@media screen and ( min-width: 782px ) {
    13231323        .wp-core-ui .quicktags-toolbar input.button.button-small {
    1324                 /* .button-small is normaly 11px, but a bit too small for these buttons. */
     1324                /* .button-small is normally 11px, but a bit too small for these buttons. */
    13251325                font-size: 12px;
    13261326                height: 26px;
    13271327                line-height: 24px;
  • src/wp-includes/customize/class-wp-customize-themes-panel.php

     
    7272                ?>
    7373                <li class="filter-themes-count">
    7474                        <span class="themes-displayed"><?php
    75                                 /* translators: %s: number of themes displayed; plural forms cannot be accomodated here so assume plurality or translate as "Themes: %s" */
     75                                /* translators: %s: number of themes displayed; plural forms cannot be accommodated here so assume plurality or translate as "Themes: %s" */
    7676                                echo sprintf( __( 'Displaying %s themes' ), '<span class="theme-count">0</span>' );
    7777                        ?></span>
    7878                        <button type="button" class="button button-primary see-themes"><?php
    79                                 /* translators: %s: number of themes displayed; plural forms cannot be accomodated here so assume plurality or omit the count and translate as "Show themes" */
     79                                /* translators: %s: number of themes displayed; plural forms cannot be accommodated here so assume plurality or omit the count and translate as "Show themes" */
    8080                                echo sprintf( __( 'Show %s themes' ), '<span class="theme-count">0</span>' );
    8181                        ?></button>
    8282                        <button type="button" class="button button-primary filter-themes"><?php _e( 'Filter themes' ); ?></button>
  • src/wp-includes/deprecated.php

     
    37633763 * Retrieve path of paged template in current or parent template.
    37643764 *
    37653765 * @since 1.5.0
    3766  * @deprecated 4.7.0 The paged.php template is no longer part of the theme template heirarchy.
     3766 * @deprecated 4.7.0 The paged.php template is no longer part of the theme template hierarchy.
    37673767 *
    37683768 * @return string Full path to paged template file.
    37693769 */
  • src/wp-includes/js/customize-base.js

     
    165165        /**
    166166         * Observable values that support two-way binding.
    167167         *
    168          * @constuctor
     168         * @constructor
    169169         */
    170170        api.Value = api.Class.extend({
    171171                /**
     
    304304        /**
    305305         * A collection of observable values.
    306306         *
    307          * @constuctor
     307         * @constructor
    308308         * @augments wp.customize.Class
    309309         * @mixes wp.customize.Events
    310310         */
     
    520520         *
    521521         * Handles inputs, selects, and textareas by default.
    522522         *
    523          * @constuctor
     523         * @constructor
    524524         * @augments wp.customize.Value
    525525         * @augments wp.customize.Class
    526526         */
     
    617617        /**
    618618         * A communicator for sending data from one window to another over postMessage.
    619619         *
    620          * @constuctor
     620         * @constructor
    621621         * @augments wp.customize.Class
    622622         * @mixes wp.customize.Events
    623623         */
  • src/wp-includes/js/customize-selective-refresh.js

     
    272272                        }
    273273
    274274                        /* jshint ignore:start */
    275                         self.orginalDocumentWrite = document.write;
     275                        self.originalDocumentWrite = document.write;
    276276                        document.write = function() {
    277277                                throw new Error( self.data.l10n.badDocumentWrite );
    278278                        };
     
    315315                                }
    316316                        }
    317317                        /* jshint ignore:start */
    318                         document.write = self.orginalDocumentWrite;
    319                         self.orginalDocumentWrite = null;
     318                        document.write = self.originalDocumentWrite;
     319                        self.originalDocumentWrite = null;
    320320                        /* jshint ignore:end */
    321321
    322322                        placement.container.removeClass( 'customize-partial-refreshing' );
  • src/wp-includes/js/heartbeat.js

     
    131131                                // Needed for some hosts that cannot handle frequent requests and the user may exceed the allocated server CPU time, etc.
    132132                                // The minimal interval can be up to 600 sec. however setting it to longer than 120 sec. will limit or disable
    133133                                // some of the functionality (like post locks).
    134                                 // Once set at initialization, minimalInterval cannot be changed/overriden.
     134                                // Once set at initialization, minimalInterval cannot be changed/overridden.
    135135                                if ( options.minimalInterval ) {
    136136                                        options.minimalInterval = parseInt( options.minimalInterval, 10 );
    137137                                        settings.minimalInterval = options.minimalInterval > 0 && options.minimalInterval <= 600 ? options.minimalInterval * 1000 : 0;
  • src/wp-includes/js/imgareaselect/jquery.imgareaselect.js

     
    12061206                $(this).data('imgAreaSelect').setOptions(options);
    12071207        }
    12081208        else if (!options.remove) {
    1209             /* No exising instance -- create a new one */
     1209            /* No existing instance -- create a new one */
    12101210
    12111211            /*
    12121212             * If neither the "enable" nor the "disable" option is present, add
  • src/wp-includes/js/mce-view.js

     
    294294                initialize: function() {},
    295295
    296296                /**
    297                  * Retuns the content to render in the view node.
     297                 * Returns the content to render in the view node.
    298298                 *
    299299                 * @return {*}
    300300                 */
  • src/wp-includes/js/media/models/attachments.js

     
    296296                delete this.mirroring;
    297297        },
    298298        /**
    299          * Retrive more attachments from the server for the collection.
     299         * Retrieve more attachments from the server for the collection.
    300300         *
    301301         * Only works if the collection is mirroring a Query Attachments collection,
    302302         * and forwards to its `more` method. This collection class doesn't have
  • src/wp-includes/js/media-models.js

     
    696696                delete this.mirroring;
    697697        },
    698698        /**
    699          * Retrive more attachments from the server for the collection.
     699         * Retrieve more attachments from the server for the collection.
    700700         *
    701701         * Only works if the collection is mirroring a Query Attachments collection,
    702702         * and forwards to its `more` method. This collection class doesn't have
  • src/wp-includes/js/utils.js

     
    110110                if ( typeof( expires ) === 'object' && expires.toGMTString ) {
    111111                        expires = expires.toGMTString();
    112112                } else if ( parseInt( expires, 10 ) ) {
    113                         d.setTime( d.getTime() + ( parseInt( expires, 10 ) * 1000 ) ); // time must be in miliseconds
     113                        d.setTime( d.getTime() + ( parseInt( expires, 10 ) * 1000 ) ); // time must be in milliseconds
    114114                        expires = d.toGMTString();
    115115                } else {
    116116                        expires = '';
  • src/wp-includes/js/wp-api.js

     
    422422                        },
    423423
    424424                        /**
    425                          * Add a helper funtion to handle post Meta.
     425                         * Add a helper function to handle post Meta.
    426426                         */
    427427                        MetaMixin = {
    428428                                getMeta: function() {
     
    431431                        },
    432432
    433433                        /**
    434                          * Add a helper funtion to handle post Revisions.
     434                         * Add a helper function to handle post Revisions.
    435435                         */
    436436                        RevisionsMixin = {
    437437                                getRevisions: function() {
     
    440440                        },
    441441
    442442                        /**
    443                          * Add a helper funtion to handle post Tags.
     443                         * Add a helper function to handle post Tags.
    444444                         */
    445445                        TagsMixin = {
    446446
     
    524524                        },
    525525
    526526                        /**
    527                          * Add a helper funtion to handle post Categories.
     527                         * Add a helper function to handle post Categories.
    528528                         */
    529529                        CategoriesMixin = {
    530530
  • src/wp-includes/pluggable.php

     
    17301730                @wp_mail( get_option( 'admin_email' ), sprintf( __( '[%s] New User Registration' ), $blogname ), $message );
    17311731        }
    17321732
    1733         // `$deprecated was pre-4.3 `$plaintext_pass`. An empty `$plaintext_pass` didn't sent a user notifcation.
     1733        // `$deprecated was pre-4.3 `$plaintext_pass`. An empty `$plaintext_pass` didn't sent a user notification.
    17341734        if ( 'admin' === $notify || ( empty( $deprecated ) && empty( $notify ) ) ) {
    17351735                return;
    17361736        }
  • src/wp-includes/pomo/translations.php

     
    102102         * Here, in the base Translations class, the common logic for English is implemented:
    103103         *      0 if there is one element, 1 otherwise
    104104         *
    105          * This function should be overrided by the sub-classes. For example MO/PO can derive the logic
     105         * This function should be overridden by the sub-classes. For example MO/PO can derive the logic
    106106         * from their headers.
    107107         *
    108108         * @param integer $count number of items
  • src/wp-includes/rest-api/class-wp-rest-server.php

     
    641641         * @param string $namespace  Namespace.
    642642         * @param string $route      The REST route.
    643643         * @param array  $route_args Route arguments.
    644          * @param bool   $override   Optional. Whether the route should be overriden if it already exists.
     644         * @param bool   $override   Optional. Whether the route should be overridden if it already exists.
    645645         *                           Default false.
    646646         */
    647647        public function register_route( $namespace, $route, $route_args, $override = false ) {
  • src/wp-includes/rss.php

     
    741741/*=======================================================================*\
    742742        Function:       set
    743743        Purpose:        add an item to the cache, keyed on url
    744         Input:          url from wich the rss file was fetched
     744        Input:          url from which the rss file was fetched
    745745        Output:         true on success
    746746\*=======================================================================*/
    747747        function set ($url, $rss) {
     
    755755/*=======================================================================*\
    756756        Function:       get
    757757        Purpose:        fetch an item from the cache
    758         Input:          url from wich the rss file was fetched
     758        Input:          url from which the rss file was fetched
    759759        Output:         cached object on HIT, false on MISS
    760760\*=======================================================================*/
    761761        function get ($url) {
     
    776776        Function:       check_cache
    777777        Purpose:        check a url for membership in the cache
    778778                                and whether the object is older then MAX_AGE (ie. STALE)
    779         Input:          url from wich the rss file was fetched
     779        Input:          url from which the rss file was fetched
    780780        Output:         cached object on HIT, false on MISS
    781781\*=======================================================================*/
    782782        function check_cache ( $url ) {
     
    809809/*=======================================================================*\
    810810        Function:       file_name
    811811        Purpose:        map url to location in cache
    812         Input:          url from wich the rss file was fetched
     812        Input:          url from which the rss file was fetched
    813813        Output:         a file name
    814814\*=======================================================================*/
    815815        function file_name ($url) {