Docs: Correct spelling of "subclass" and "overridden" in various docblocks and error messages.
Props garrett-eclipse. Fixes #48676. git-svn-id: https://develop.svn.wordpress.org/trunk@46739 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
24de36bc5a
commit
7bb2a562a6
2
src/js/_enqueues/wp/customize/controls.js
vendored
2
src/js/_enqueues/wp/customize/controls.js
vendored
@ -3500,7 +3500,7 @@
|
|||||||
control.params = _.extend(
|
control.params = _.extend(
|
||||||
{},
|
{},
|
||||||
control.defaults,
|
control.defaults,
|
||||||
control.params || {}, // In case sub-class already defines.
|
control.params || {}, // In case subclass already defines.
|
||||||
options.params || options || {} // The options.params property is deprecated, but it is checked first for back-compat.
|
options.params || options || {} // The options.params property is deprecated, but it is checked first for back-compat.
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ class WP_List_Table {
|
|||||||
* @abstract
|
* @abstract
|
||||||
*/
|
*/
|
||||||
public function ajax_user_can() {
|
public function ajax_user_can() {
|
||||||
die( 'function WP_List_Table::ajax_user_can() must be over-ridden in a sub-class.' );
|
die( 'function WP_List_Table::ajax_user_can() must be overridden in a subclass.' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -263,7 +263,7 @@ class WP_List_Table {
|
|||||||
* @abstract
|
* @abstract
|
||||||
*/
|
*/
|
||||||
public function prepare_items() {
|
public function prepare_items() {
|
||||||
die( 'function WP_List_Table::prepare_items() must be over-ridden in a sub-class.' );
|
die( 'function WP_List_Table::prepare_items() must be overridden in a subclass.' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -931,7 +931,7 @@ class WP_List_Table {
|
|||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get_columns() {
|
public function get_columns() {
|
||||||
die( 'function WP_List_Table::get_columns() must be over-ridden in a sub-class.' );
|
die( 'function WP_List_Table::get_columns() must be overridden in a subclass.' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -30,7 +30,7 @@ abstract class WP_Image_Editor {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks to see if current environment supports the editor chosen.
|
* Checks to see if current environment supports the editor chosen.
|
||||||
* Must be overridden in a sub-class.
|
* Must be overridden in a subclass.
|
||||||
*
|
*
|
||||||
* @since 3.5.0
|
* @since 3.5.0
|
||||||
*
|
*
|
||||||
@ -45,7 +45,7 @@ abstract class WP_Image_Editor {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks to see if editor supports the mime-type specified.
|
* Checks to see if editor supports the mime-type specified.
|
||||||
* Must be overridden in a sub-class.
|
* Must be overridden in a subclass.
|
||||||
*
|
*
|
||||||
* @since 3.5.0
|
* @since 3.5.0
|
||||||
*
|
*
|
||||||
|
@ -101,7 +101,7 @@ class WP_Widget {
|
|||||||
/**
|
/**
|
||||||
* Echoes the widget content.
|
* Echoes the widget content.
|
||||||
*
|
*
|
||||||
* Sub-classes should over-ride this function to generate their widget code.
|
* Subclasses should override this function to generate their widget code.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
*
|
*
|
||||||
@ -110,7 +110,7 @@ class WP_Widget {
|
|||||||
* @param array $instance The settings for the particular instance of the widget.
|
* @param array $instance The settings for the particular instance of the widget.
|
||||||
*/
|
*/
|
||||||
public function widget( $args, $instance ) {
|
public function widget( $args, $instance ) {
|
||||||
die( 'function WP_Widget::widget() must be over-ridden in a sub-class.' );
|
die( 'function WP_Widget::widget() must be overridden in a subclass.' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -113,7 +113,7 @@ if ( ! class_exists( 'Translations', false ) ) :
|
|||||||
* Here, in the base Translations class, the common logic for English is implemented:
|
* Here, in the base Translations class, the common logic for English is implemented:
|
||||||
* 0 if there is one element, 1 otherwise
|
* 0 if there is one element, 1 otherwise
|
||||||
*
|
*
|
||||||
* This function should be overridden by the sub-classes. For example MO/PO can derive the logic
|
* This function should be overridden by the subclasses. For example MO/PO can derive the logic
|
||||||
* from their headers.
|
* from their headers.
|
||||||
*
|
*
|
||||||
* @param integer $count number of items
|
* @param integer $count number of items
|
||||||
|
Loading…
Reference in New Issue
Block a user