Make WordPress Core


Ignore:
Timestamp:
01/15/2021 08:06:50 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: In various @return tags, list the expected type first, instead of false.

Follow-up to [46696], [47060], [49926], [49927], [49929].

See #51800.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets.php

    r49790 r49963  
    880880 * @global array $wp_registered_widgets
    881881 *
    882  * @param callable|false $callback      Optional, Widget callback to check. Default false.
    883  * @param int|false      $widget_id     Optional. Widget ID. Optional, but needed for checking. Default false.
    884  * @param string|false   $id_base       Optional. The base ID of a widget created by extending WP_Widget. Default false.
    885  * @param bool           $skip_inactive Optional. Whether to check in 'wp_inactive_widgets'. Default true.
    886  * @return string|false False if widget is not active or id of sidebar in which the widget is active.
     882 * @param callable|false $callback      Optional. Widget callback to check. Default false.
     883 * @param int|false      $widget_id     Optional. Widget ID. Optional, but needed for checking.
     884 *                                      Default false.
     885 * @param string|false   $id_base       Optional. The base ID of a widget created by extending WP_Widget.
     886 *                                      Default false.
     887 * @param bool           $skip_inactive Optional. Whether to check in 'wp_inactive_widgets'.
     888 *                                      Default true.
     889 * @return string|false ID of the sidebar in which the widget is active,
     890 *                      false if the widget is not active.
    887891 */
    888892function is_active_widget( $callback = false, $widget_id = false, $id_base = false, $skip_inactive = true ) {
Note: See TracChangeset for help on using the changeset viewer.