mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 01:00:04 +00:00
Plugins: Replace usage of $this in action and filter parameter docblocks with more appropriate variable names.
See #51800, #52217 Fixes #52243 git-svn-id: https://develop.svn.wordpress.org/trunk@49946 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -270,12 +270,12 @@ class WP_Widget_Text extends WP_Widget {
|
||||
* Filters the content of the Text widget.
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @since 4.4.0 Added the `$this` parameter.
|
||||
* @since 4.8.1 The `$this` param may now be a `WP_Widget_Custom_HTML` object in addition to a `WP_Widget_Text` object.
|
||||
* @since 4.4.0 Added the `$widget` parameter.
|
||||
* @since 4.8.1 The `$widget` param may now be a `WP_Widget_Custom_HTML` object in addition to a `WP_Widget_Text` object.
|
||||
*
|
||||
* @param string $text The widget content.
|
||||
* @param array $instance Array of settings for the current widget.
|
||||
* @param WP_Widget_Text|WP_Widget_Custom_HTML $this Current Text widget instance.
|
||||
* @param WP_Widget_Text|WP_Widget_Custom_HTML $widget Current text or HTML widget instance.
|
||||
*/
|
||||
$text = apply_filters( 'widget_text', $text, $instance, $this );
|
||||
|
||||
@@ -290,7 +290,7 @@ class WP_Widget_Text extends WP_Widget {
|
||||
*
|
||||
* @param string $text The widget content.
|
||||
* @param array $instance Array of settings for the current widget.
|
||||
* @param WP_Widget_Text $this Current Text widget instance.
|
||||
* @param WP_Widget_Text $widget Current Text widget instance.
|
||||
*/
|
||||
$text = apply_filters( 'widget_text_content', $text, $instance, $this );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user