Changeset 46122
- Timestamp:
- 09/15/2019 10:30:16 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets.php
r45932 r46122 355 355 * @param mixed ...$params Optional additional parameters to pass to the callback function when it's called. 356 356 */ 357 function wp_register_sidebar_widget( $id, $name, $output_callback, $options = array() ) {357 function wp_register_sidebar_widget( $id, $name, $output_callback, $options = array(), ...$params ) { 358 358 global $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_widget_updates, $_wp_deprecated_widgets_callbacks; 359 359 … … 378 378 'id' => $id, 379 379 'callback' => $output_callback, 380 'params' => array_slice( func_get_args(), 4 ),380 'params' => $params, 381 381 ); 382 382 $widget = array_merge( $widget, $options );
Note: See TracChangeset
for help on using the changeset viewer.