Make WordPress Core

Ticket #48676: 48676.diff

File 48676.diff, 3.6 KB (added by garrett-eclipse, 7 years ago)

Patch to replace hyphenated words sub-class/over-ride/over-ridden with their proper spelling subclass/override/overridden

  • src/js/_enqueues/wp/customize/controls.js

     
    35003500                        control.params = _.extend(
    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                        );
    35063506
  • src/wp-admin/includes/class-wp-list-table.php

     
    251251         * @abstract
    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
    257257        /**
    … …  
    263263         * @abstract
    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
    269269        /**
    … …  
    931931         * @return array
    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
    937937        /**
  • src/wp-includes/class-wp-image-editor.php

     
    3030
    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
    3636         *
    … …  
    4545
    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
    5151         *
  • src/wp-includes/class-wp-widget.php

     
    101101        /**
    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
    107107         *
    … …  
    110110         * @param array $instance The settings for the particular instance of the widget.
    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
    116116        /**
  • src/wp-includes/pomo/translations.php

     
    113113                 * Here, in the base Translations class, the common logic for English is implemented:
    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                 *
    119119                 * @param integer $count number of items