equal
deleted
inserted
replaced
22 header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' ); |
22 header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' ); |
23 header( 'Cache-Control: no-cache, must-revalidate, max-age=0' ); |
23 header( 'Cache-Control: no-cache, must-revalidate, max-age=0' ); |
24 } |
24 } |
25 |
25 |
26 // Don't run cron until the request finishes, if possible. |
26 // Don't run cron until the request finishes, if possible. |
27 if ( PHP_VERSION_ID >= 70016 && function_exists( 'fastcgi_finish_request' ) ) { |
27 if ( function_exists( 'fastcgi_finish_request' ) ) { |
28 fastcgi_finish_request(); |
28 fastcgi_finish_request(); |
29 } elseif ( function_exists( 'litespeed_finish_request' ) ) { |
29 } elseif ( function_exists( 'litespeed_finish_request' ) ) { |
30 litespeed_finish_request(); |
30 litespeed_finish_request(); |
31 } |
31 } |
32 |
32 |
139 wp_json_encode( $v ) |
139 wp_json_encode( $v ) |
140 ) |
140 ) |
141 ); |
141 ); |
142 |
142 |
143 /** |
143 /** |
144 * Fires when an error happens rescheduling a cron event. |
144 * Fires if an error happens when rescheduling a cron event. |
145 * |
145 * |
146 * @since 6.1.0 |
146 * @since 6.1.0 |
147 * |
147 * |
148 * @param WP_Error $result The WP_Error object. |
148 * @param WP_Error $result The WP_Error object. |
149 * @param string $hook Action hook to execute when the event is run. |
149 * @param string $hook Action hook to execute when the event is run. |
166 wp_json_encode( $v ) |
166 wp_json_encode( $v ) |
167 ) |
167 ) |
168 ); |
168 ); |
169 |
169 |
170 /** |
170 /** |
171 * Fires when an error happens unscheduling a cron event. |
171 * Fires if an error happens when unscheduling a cron event. |
172 * |
172 * |
173 * @since 6.1.0 |
173 * @since 6.1.0 |
174 * |
174 * |
175 * @param WP_Error $result The WP_Error object. |
175 * @param WP_Error $result The WP_Error object. |
176 * @param string $hook Action hook to execute when the event is run. |
176 * @param string $hook Action hook to execute when the event is run. |