Make WordPress Core

Changeset 277 in tests


Ignore:
Timestamp:
12/19/2009 11:45:32 AM (16 years ago)
Author:
westi
Message:

Add some extra commentary to the wp_clear_scheduled_hook tests to hilight the switch from old to new behaviour and the fact that we still support the old behaviour.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_cron.php

    r274 r277  
    142142
    143143        // clear the schedule for the args events and make sure they're gone too
    144         // note: wp_clear_scheduled_hook() expects args passed directly, rather than as an array
     144        // note: wp_clear_scheduled_hook() used to expect args passed directly, rather than as an array pre WP 3.0
    145145        wp_clear_scheduled_hook($hook, $args[0], $args[1]);
    146146        $this->assertFalse( wp_next_scheduled($hook, $args) );
     
    178178
    179179        // clear the schedule for the args events and make sure they're gone too
    180         // wp_clear_scheduled_hook() should take args as an array like the other functions.
     180        // wp_clear_scheduled_hook() should take args as an array like the other functions and does from WP 3.0
    181181        wp_clear_scheduled_hook($multi_hook, $multi_args);
    182182        $this->assertFalse( wp_next_scheduled($multi_hook, $multi_args) );
Note: See TracChangeset for help on using the changeset viewer.