mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Docs: In various @return tags, list the expected type first, instead of false.
Follow-up to [46696], [47060], [49926], [49927], [49929]. See #51800. git-svn-id: https://develop.svn.wordpress.org/trunk@49963 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -879,11 +879,15 @@ function dynamic_sidebar( $index = 1 ) {
|
||||
*
|
||||
* @global array $wp_registered_widgets
|
||||
*
|
||||
* @param callable|false $callback Optional, Widget callback to check. Default false.
|
||||
* @param int|false $widget_id Optional. Widget ID. Optional, but needed for checking. Default false.
|
||||
* @param string|false $id_base Optional. The base ID of a widget created by extending WP_Widget. Default false.
|
||||
* @param bool $skip_inactive Optional. Whether to check in 'wp_inactive_widgets'. Default true.
|
||||
* @return string|false False if widget is not active or id of sidebar in which the widget is active.
|
||||
* @param callable|false $callback Optional. Widget callback to check. Default false.
|
||||
* @param int|false $widget_id Optional. Widget ID. Optional, but needed for checking.
|
||||
* Default false.
|
||||
* @param string|false $id_base Optional. The base ID of a widget created by extending WP_Widget.
|
||||
* Default false.
|
||||
* @param bool $skip_inactive Optional. Whether to check in 'wp_inactive_widgets'.
|
||||
* Default true.
|
||||
* @return string|false ID of the sidebar in which the widget is active,
|
||||
* false if the widget is not active.
|
||||
*/
|
||||
function is_active_widget( $callback = false, $widget_id = false, $id_base = false, $skip_inactive = true ) {
|
||||
global $wp_registered_widgets;
|
||||
|
||||
Reference in New Issue
Block a user