Make WordPress Core

Changeset 30665


Ignore:
Timestamp:
11/30/2014 10:04:23 PM (10 years ago)
Author:
wonderboymusic
Message:

Improve the @param docs for src/wp-includes/widgets.php.

See #30224.

File:
1 edited

Legend:

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

    r30382 r30665  
    110110    /**
    111111     * PHP4 constructor
     112     *
     113     * @param string $id_base
     114     * @param string $name
     115     * @param array  $widget_options
     116     * @param array  $control_options
    112117     */
    113118    public function WP_Widget( $id_base, $name, $widget_options = array(), $control_options = array() ) {
     
    273278     * Do NOT over-ride this function.
    274279     *
    275      * @param mixed $deprecated Not used.
     280     * @param int $deprecated Not used.
    276281     */
    277282    public function update_callback( $deprecated = 1 ) {
     
    848853 * @since 2.9.0
    849854 *
    850  * @param int|string $id sidebar ID.
     855 * @param string $id sidebar ID.
    851856 * @return string Sidebar description, if available. Null on failure to retrieve description.
    852857 */
     
    899904 * @param callback $control_callback Run when sidebar is displayed.
    900905 * @param array|string $options Optional. Widget options. See above long description.
    901  * @param mixed $params,... Optional. Additional parameters to add to widget.
    902906 */
    903907function wp_register_widget_control($id, $name, $control_callback, $options = array()) {
     
    948952}
    949953
     954/**
     955 *
     956 * @global array $wp_registered_widget_updates
     957 * @param string   $id_base
     958 * @param callable $update_callback
     959 * @param array    $options
     960 */
    950961function _register_widget_update_callback($id_base, $update_callback, $options = array()) {
    951962    global $wp_registered_widget_updates;
     
    966977}
    967978
     979/**
     980 *
     981 * @global array $wp_registered_widget_controls
     982 * @param int|string $id
     983 * @param string     $name
     984 * @param callable   $form_callback
     985 * @param array      $options
     986 * @return null
     987 */
    968988function _register_widget_form_callback($id, $name, $form_callback, $options = array()) {
    969989    global $wp_registered_widget_controls;
     
    12501270 * @since 2.8.0
    12511271 *
    1252  * @param mixed $index Sidebar name, id or number to check.
     1272 * @param string|int $index Sidebar name, id or number to check.
    12531273 * @return bool true if the sidebar is in use, false otherwise.
    12541274 */
     
    13531373 * @since 2.8.0
    13541374 *
     1375 * @param string $base_name
     1376 * @param string $option_name
     1377 * @param array  $settings
    13551378 * @return array
    13561379 */
     
    14711494 * @since 2.8.0
    14721495 *
    1473  * @param mixed $theme_changed Whether the theme was changed as a boolean. A value
    1474  *                             of 'customize' defers updates for the Customizer.
     1496 * @param string|bool $theme_changed Whether the theme was changed as a boolean. A value
     1497 *                                   of 'customize' defers updates for the Customizer.
    14751498 * @return array
    14761499 */
Note: See TracChangeset for help on using the changeset viewer.