Make WordPress Core

Changeset 10535


Ignore:
Timestamp:
02/10/2009 03:22:08 PM (16 years ago)
Author:
azaozz
Message:

Documentation correction: is_active_widget(), props mdawaffe, fixes #9080

File:
1 edited

Legend:

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

    r10314 r10535  
    487487 * Whether widget is registered using callback with widget ID.
    488488 *
    489  * Will only check if both parameters are used. Used to find which sidebar the
    490  * widget is located in, but requires that both the callback and the widget ID
    491  * be known.
     489 * Without the optional $widget_id parameter, returns the ID of the first sidebar in which the first instance of the widget with the given callback is found.
     490 * With the $widget_id parameter, returns the ID of the sidebar in which the widget with that callback AND that ID is found.
    492491 *
    493492 * @since 2.2.0
Note: See TracChangeset for help on using the changeset viewer.