[wp-trac] [WordPress Trac] #53394: @global $wp_widget_factory is used but not define in documentation of this function sanitize_widget_instance( $value, $id_base = null )
WordPress Trac
noreply at wordpress.org
Mon Jun 14 08:19:14 UTC 2021
#53394: @global $wp_widget_factory is used but not define in documentation of this
function sanitize_widget_instance( $value, $id_base = null )
--------------------------+------------------------------
Reporter: jontyravi | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 5.7
Severity: normal | Resolution:
Keywords: has-patch | Focuses: docs
--------------------------+------------------------------
Comment (by audrasjb):
Thank you. However, for WP coding standards compliance, we need a newline
before and after the @global declaration. To clarify, here is what we
need:
{{{
* @since 3.9.0
*
* @global WP_Widget_Factory $wp_widget_factory
*
* @param array $value Widget instance to sanitize.
}}}
''(feel free to delete the previous diff files when your patch is somehow
uploaded multiple times ;)''
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53394#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list