Make WordPress Core

Changeset 25368


Ignore:
Timestamp:
09/11/2013 10:21:43 PM (11 years ago)
Author:
wonderboymusic
Message:

Pass $args as an array, rather than a splat, to wp_clear_scheduled_hook(). There are comments in the code describing the deprecated argument behavior.

See #25282.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/cron.php

    r25002 r25368  
    121121        // clear the schedule for the args events and make sure they're gone too
    122122        // note: wp_clear_scheduled_hook() expects args passed directly, rather than as an array
    123         wp_clear_scheduled_hook($hook, $args[0]);
     123        wp_clear_scheduled_hook($hook, $args);
    124124        $this->assertFalse( wp_next_scheduled($hook, $args) );
    125125    }
     
    147147        // clear the schedule for the args events and make sure they're gone too
    148148        // note: wp_clear_scheduled_hook() used to expect args passed directly, rather than as an array pre WP 3.0
    149         wp_clear_scheduled_hook($hook, $args[0], $args[1]);
     149        wp_clear_scheduled_hook($hook, $args);
    150150        $this->assertFalse( wp_next_scheduled($hook, $args) );
    151151    }
Note: See TracChangeset for help on using the changeset viewer.