Make WordPress Core

Changeset 46739


Ignore:
Timestamp:
11/17/2019 07:41:49 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct spelling of "subclass" and "overridden" in various docblocks and error messages.

Props garrett-eclipse.
Fixes #48676.

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/wp/customize/controls.js

    r46623 r46739  
    35013501                                {},
    35023502                                control.defaults,
    3503                                 control.params || {}, // In case sub-class already defines.
     3503                                control.params || {}, // In case subclass already defines.
    35043504                                options.params || options || {} // The options.params property is deprecated, but it is checked first for back-compat.
    35053505                        );
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r46662 r46739  
    252252         */
    253253        public function ajax_user_can() {
    254                 die( 'function WP_List_Table::ajax_user_can() must be over-ridden in a sub-class.' );
     254                die( 'function WP_List_Table::ajax_user_can() must be overridden in a subclass.' );
    255255        }
    256256
     
    264264         */
    265265        public function prepare_items() {
    266                 die( 'function WP_List_Table::prepare_items() must be over-ridden in a sub-class.' );
     266                die( 'function WP_List_Table::prepare_items() must be overridden in a subclass.' );
    267267        }
    268268
     
    932932         */
    933933        public function get_columns() {
    934                 die( 'function WP_List_Table::get_columns() must be over-ridden in a sub-class.' );
     934                die( 'function WP_List_Table::get_columns() must be overridden in a subclass.' );
    935935        }
    936936
  • trunk/src/wp-includes/class-wp-image-editor.php

    r46661 r46739  
    3131        /**
    3232         * Checks to see if current environment supports the editor chosen.
    33          * Must be overridden in a sub-class.
     33         * Must be overridden in a subclass.
    3434         *
    3535         * @since 3.5.0
     
    4646        /**
    4747         * Checks to see if editor supports the mime-type specified.
    48          * Must be overridden in a sub-class.
     48         * Must be overridden in a subclass.
    4949         *
    5050         * @since 3.5.0
  • trunk/src/wp-includes/class-wp-widget.php

    r46627 r46739  
    102102         * Echoes the widget content.
    103103         *
    104          * Sub-classes should over-ride this function to generate their widget code.
     104         * Subclasses should override this function to generate their widget code.
    105105         *
    106106         * @since 2.8.0
     
    111111         */
    112112        public function widget( $args, $instance ) {
    113                 die( 'function WP_Widget::widget() must be over-ridden in a sub-class.' );
     113                die( 'function WP_Widget::widget() must be overridden in a subclass.' );
    114114        }
    115115
  • trunk/src/wp-includes/pomo/translations.php

    r42343 r46739  
    114114                 *  0 if there is one element, 1 otherwise
    115115                 *
    116                  * This function should be overridden by the sub-classes. For example MO/PO can derive the logic
     116                 * This function should be overridden by the subclasses. For example MO/PO can derive the logic
    117117                 * from their headers.
    118118                 *
Note: See TracChangeset for help on using the changeset viewer.