From d8174f6046aaf6821bc82643dc480d5c2c4ab937 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 17 Dec 2015 17:22:40 +0000 Subject: [PATCH] Docs: Add a missing summary, `@since` version, and parameter descriptions in the DocBlock for `_register_widget_form_callback()`. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@35991 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/widgets.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php index 93d875b69d..9589d18b36 100644 --- a/src/wp-includes/widgets.php +++ b/src/wp-includes/widgets.php @@ -543,13 +543,17 @@ function _register_widget_update_callback( $id_base, $update_callback, $options } /** + * Registers the form callback for a widget. + * + * @since 2.8.0 * * @global array $wp_registered_widget_controls * - * @param int|string $id - * @param string $name - * @param callable $form_callback - * @param array $options + * @param int|string $id Widget ID. + * @param string $name Name attribute for the widget. + * @param callable $form_callback Form callback. + * @param array $options Optional. Widget control options. See {@see wp_register_widget_control()}. + * Default empty array. */ function _register_widget_form_callback($id, $name, $form_callback, $options = array()) { global $wp_registered_widget_controls;