Make WordPress Core

Ticket #9080: 9080.diff

File 9080.diff, 764 bytes (added by mdawaffe, 16 years ago)
  • wp-includes/widgets.php

     
    486486/**
    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
    494493 *