Make WordPress Core


Ignore:
Timestamp:
08/07/2014 09:46:02 PM (10 years ago)
Author:
wonderboymusic
Message:

wp_dashboard_cached_rss_widget() contained some func_get_args() code that was indescribably weird.
This keeps it weird, but makes sure that $check_urls gets passed to the callback.

Props michalzuber, ocean90.
Fixes #28872.

File:
1 edited

Legend:

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

    r29323 r29442  
    846846
    847847    if ( $callback && is_callable( $callback ) ) {
    848         $args = array_slice( func_get_args(), 2 );
    849         array_unshift( $args, $widget_id );
     848        $args = array_slice( func_get_args(), 3 );
     849        array_unshift( $args, $widget_id, $check_urls );
    850850        ob_start();
    851851        call_user_func_array( $callback, $args );
Note: See TracChangeset for help on using the changeset viewer.