diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 3b687879ea..7598df80c8 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -1062,7 +1062,7 @@ function wp_dashboard_rss_output( $widget_id ) { * @param mixed ...$args Optional additional parameters to pass to the callback function when it's called. * @return bool False on failure. True on success. */ -function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = array() ) { +function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = array(), ...$args ) { $loading = '

' . __( 'Loading…' ) . '

' . __( 'This widget requires JavaScript.' ) . '

'; $doing_ajax = wp_doing_ajax(); @@ -1089,7 +1089,6 @@ function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = ar } if ( $callback && is_callable( $callback ) ) { - $args = array_slice( func_get_args(), 3 ); array_unshift( $args, $widget_id, $check_urls ); ob_start(); call_user_func_array( $callback, $args ); diff --git a/wp-includes/version.php b/wp-includes/version.php index b65c5c3ac4..b8d99dd104 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-46129'; +$wp_version = '5.3-alpha-46130'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.