Make WordPress Core

Ticket #28872: 28872.3.diff

File 28872.3.diff, 672 bytes (added by ocean90, 9 years ago)
  • src/wp-admin/includes/dashboard.php

     
    845845        }
    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 );
    852852                set_transient( $cache_key, ob_get_flush(), 12 * HOUR_IN_SECONDS ); // Default lifetime in cache of 12 hours (same as the feeds)