Docs: Use third-person singular verbs for method summaries in `WP_Widget_Factory`.
Fixes #36299. Built from https://develop.svn.wordpress.org/trunk@37063 git-svn-id: http://core.svn.wordpress.org/trunk@37030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c5ff4f3b47
commit
e6d9d95f6d
|
@ -46,31 +46,31 @@ class WP_Widget_Factory {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register a widget subclass.
|
* Registers a widget subclass.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @param string $widget_class The name of a {@see WP_Widget} subclass.
|
* @param string $widget_class The name of a WP_Widget subclass.
|
||||||
*/
|
*/
|
||||||
public function register( $widget_class ) {
|
public function register( $widget_class ) {
|
||||||
$this->widgets[$widget_class] = new $widget_class();
|
$this->widgets[$widget_class] = new $widget_class();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Un-register a widget subclass.
|
* Un-registers a widget subclass.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* @param string $widget_class The name of a {@see WP_Widget} subclass.
|
* @param string $widget_class The name of a WP_Widget subclass.
|
||||||
*/
|
*/
|
||||||
public function unregister( $widget_class ) {
|
public function unregister( $widget_class ) {
|
||||||
unset( $this->widgets[ $widget_class ] );
|
unset( $this->widgets[ $widget_class ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility method for adding widgets to the registered widgets global.
|
* Serves as a utility method for adding widgets to the registered widgets global.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @access public
|
* @access public
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.5-beta4-37062';
|
$wp_version = '4.5-beta4-37063';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue