Make WordPress Core


Ignore:
Timestamp:
12/17/2015 05:18:53 PM (9 years ago)
Author:
DrewAPicture
Message:

Docs: Fix syntax for marking parameters optional in the DocBlock for is_active_widget().

See #32246.

File:
1 edited

Legend:

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

    r35989 r35990  
    783783 * @global array $wp_registered_widgets
    784784 *
    785  * @param string $callback      Optional, Widget callback to check.
    786  * @param int    $widget_id     Optional, but needed for checking. Widget ID.
    787  * @param string $id_base       Optional, the base ID of a widget created by extending WP_Widget.
    788  * @param bool   $skip_inactive Optional, whether to check in 'wp_inactive_widgets'.
     785 * @param string|false $callback      Optional, Widget callback to check. Default false.
     786 * @param int|false    $widget_id     Optional. Widget ID. Optional, but needed for checking. Default false.
     787 * @param string|false $id_base       Optional. The base ID of a widget created by extending WP_Widget. Default false.
     788 * @param bool         $skip_inactive Optional. Whether to check in 'wp_inactive_widgets'. Default true.
    789789 * @return string|false False if widget is not active or id of sidebar in which the widget is active.
    790790 */
    791 function is_active_widget($callback = false, $widget_id = false, $id_base = false, $skip_inactive = true) {
     791function is_active_widget( $callback = false, $widget_id = false, $id_base = false, $skip_inactive = true ) {
    792792    global $wp_registered_widgets;
    793793
Note: See TracChangeset for help on using the changeset viewer.