mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-29 15:44:27 +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:
@@ -156,7 +156,7 @@ class WP_Widget_Custom_HTML extends WP_Widget {
|
||||
*
|
||||
* @param string $content The widget content.
|
||||
* @param array $instance Array of settings for the current widget.
|
||||
* @param WP_Widget_Custom_HTML $this Current Custom HTML widget instance.
|
||||
* @param WP_Widget_Custom_HTML $widget Current Custom HTML widget instance.
|
||||
*/
|
||||
$content = apply_filters( 'widget_custom_html_content', $content, $instance, $this );
|
||||
|
||||
|
||||
@@ -162,7 +162,7 @@ abstract class WP_Widget_Media extends WP_Widget {
|
||||
* @since 4.9.0
|
||||
*
|
||||
* @param array $schema Instance schema.
|
||||
* @param WP_Widget_Media $this Widget object.
|
||||
* @param WP_Widget_Media $widget Widget object.
|
||||
*/
|
||||
$schema = apply_filters( "widget_{$this->id_base}_instance_schema", $schema, $this );
|
||||
|
||||
@@ -245,7 +245,7 @@ abstract class WP_Widget_Media extends WP_Widget {
|
||||
*
|
||||
* @param array $instance Instance data.
|
||||
* @param array $args Widget args.
|
||||
* @param WP_Widget_Media $this Widget object.
|
||||
* @param WP_Widget_Media $widget Widget object.
|
||||
*/
|
||||
$instance = apply_filters( "widget_{$this->id_base}_instance", $instance, $args, $this );
|
||||
|
||||
|
||||
@@ -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