Make WordPress Core

Ticket #30315: 30315.3.diff

File 30315.3.diff, 798 bytes (added by blobaugh, 10 years ago)

Added documentation to next_widget_id_number

  • wp-admin/includes/widgets.php

    diff --git wp-admin/includes/widgets.php wp-admin/includes/widgets.php
    index c869449..b335f35 100644
    function wp_list_widget_controls_dynamic_sidebar( $params ) { 
    123123        return $params;
    124124}
    125125
     126/**
     127 * Looks at the list of registered widgets with the widget id containing $id_base.                   
     128 * Returns the number of widgets registered to the widget_id + 1.                                     
     129 *
     130 * @param string $id_base Base id of widget                                                           
     131 * @return integer                                                                                   
     132 **/
    126133function next_widget_id_number($id_base) {
    127134        global $wp_registered_widgets;
    128135        $number = 1;