| @@ -1,5 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | +if (!defined('ABSPATH')) die('No direct access allowed'); | |
| 3 | + | |
| 2 | 4 | /** |
| 3 | 5 | * Normalize a filesystem path. |
| 4 | 6 | */ |
| 5 | 7 | if (!function_exists('wp_normalize_path')) { |
| @@ -29,13 +31,13 @@ | ||
| 29 | 31 | } |
| 30 | 32 | } |
| 31 | 33 | |
| 32 | 34 | /** |
| 33 | - * Unschedules all events attached to the hook. | |
| 35 | + * Un schedules all events attached to the hook. | |
| 34 | 36 | */ |
| 35 | 37 | if (!function_exists('wp_unschedule_hook')) { |
| 36 | 38 | /** |
| 37 | - * Unschedules all events attached to the hook. | |
| 39 | + * Un schedules all events attached to the hook. | |
| 38 | 40 | * |
| 39 | 41 | * Can be useful for plugins when deactivating to clean up the cron queue. |
| 40 | 42 | * |
| 41 | 43 | * Warning: This function may return Boolean FALSE, but may also return a non-Boolean |
| @@ -47,24 +49,24 @@ | ||
| 47 | 49 | * @since 5.1.0 Return value added to indicate success or failure. |
| 48 | 50 | * |
| 49 | 51 | * @param string $hook Action hook, the execution of which will be unscheduled. |
| 50 | 52 | * @return int|false On success an integer indicating number of events unscheduled (0 indicates no |
| 51 | - * events were registered on the hook), false if unscheduling fails. | |
| 53 | + * events were registered on the hook), false if un scheduling fails. | |
| 52 | 54 | */ |
| 53 | 55 | function wp_unschedule_hook($hook) { |
| 54 | 56 | /** |
| 55 | 57 | * Filter to preflight or hijack clearing all events attached to the hook. |
| 56 | 58 | * |
| 57 | - * Returning a non-null value will short-circuit the normal unscheduling | |
| 59 | + * Returning a non-null value will short-circuit the normal un scheduling | |
| 58 | 60 | * process, causing the function to return the filtered value instead. |
| 59 | 61 | * |
| 60 | 62 | * For plugins replacing wp-cron, return the number of events successfully |
| 61 | 63 | * unscheduled (zero if no events were registered with the hook) or false |
| 62 | - * if unscheduling one or more events fails. | |
| 64 | + * if un scheduling one or more events fails. | |
| 63 | 65 | * |
| 64 | 66 | * @since 5.1.0 |
| 65 | 67 | * |
| 66 | - * @param null|int|false $pre Value to return instead. Default null to continue unscheduling the hook. | |
| 68 | + * @param null|int|false $pre Value to return instead. Default null to continue un scheduling the hook. | |
| 67 | 69 | * @param string $hook Action hook, the execution of which will be unscheduled. |
| 68 | 70 | */ |
| 69 | 71 | $pre = apply_filters('pre_unschedule_hook', null, $hook); |
| 70 | 72 | if (null !== $pre) { |