@@ -177,6 +177,9 @@ |
||
177 | 177 | $queue->add_all( $data_to_enqueue ); |
178 | 178 | } |
179 | 179 | |
180 | + /** |
|
181 | + * @param Queue $queue |
|
182 | + */ |
|
180 | 183 | function enqueue_action( $current_filter, $args, $queue ) { |
181 | 184 | // don't enqueue an action during the outbound http request - this prevents recursion |
182 | 185 | if ( Settings::is_sending() ) { |
@@ -166,6 +166,9 @@ discard block |
||
166 | 166 | self::set_is_sending( null ); |
167 | 167 | } |
168 | 168 | |
169 | + /** |
|
170 | + * @param boolean|null $is_importing |
|
171 | + */ |
|
169 | 172 | static function set_importing( $is_importing ) { |
170 | 173 | // set to NULL to revert to WP_IMPORTING, the standard behavior |
171 | 174 | self::$is_importing = $is_importing; |
@@ -200,6 +203,9 @@ discard block |
||
200 | 203 | return (bool) self::$is_syncing || ( defined( 'REST_API_REQUEST' ) && REST_API_REQUEST ); |
201 | 204 | } |
202 | 205 | |
206 | + /** |
|
207 | + * @param boolean|null $is_syncing |
|
208 | + */ |
|
203 | 209 | static function set_is_syncing( $is_syncing ) { |
204 | 210 | self::$is_syncing = $is_syncing; |
205 | 211 | } |