Flesh out and fix formatting in the DocBlock for wp_register_widget_control()
.
Includes: * Added todos for documenting `$options` in the hash notation style * Backtick-escaping and general formatting See #30315. git-svn-id: https://develop.svn.wordpress.org/trunk@30778 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a0c600a121
commit
02f8434c28
@ -992,16 +992,19 @@ function wp_unregister_sidebar_widget($id) {
|
||||
* control form, but try hard to use the default width. The 'id_base' is for
|
||||
* multi-widgets (widgets which allow multiple instances such as the text
|
||||
* widget), an id_base must be provided. The widget id will end up looking like
|
||||
* {$id_base}-{$unique_number}.
|
||||
* `{$id_base}-{$unique_number}`.
|
||||
*
|
||||
* @since 2.2.0
|
||||
*
|
||||
* @param int|string $id Sidebar ID.
|
||||
* @param string $name Sidebar display name.
|
||||
* @param callback $control_callback Run when sidebar is displayed.
|
||||
* @param array|string $options Optional. Widget options. See above long description.
|
||||
* @todo Document `$options` as a hash notation, re: WP_Widget::__construct() cross-reference.
|
||||
* @todo `$params` parameter?
|
||||
*
|
||||
* @param int|string $id Sidebar ID.
|
||||
* @param string $name Sidebar display name.
|
||||
* @param callback $control_callback Run when sidebar is displayed.
|
||||
* @param array|string $options Optional. Widget options. See description above. Default empty array.
|
||||
*/
|
||||
function wp_register_widget_control($id, $name, $control_callback, $options = array()) {
|
||||
function wp_register_widget_control( $id, $name, $control_callback, $options = array() ) {
|
||||
global $wp_registered_widget_controls, $wp_registered_widget_updates, $wp_registered_widgets, $_wp_deprecated_widgets_callbacks;
|
||||
|
||||
$id = strtolower($id);
|
||||
|
Loading…
Reference in New Issue
Block a user