PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | includes/backward-compatibility-functions.php +8 -6 3.2.20 → 4.7.0 View file →
@@ -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) {