← All changes
|
includes/Admin/BackgroundProcess/WP_Background_Process.php
+1
-8
4.8.1
→
4.2.0
View file →
| @@ -1,13 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | -// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.DynamicHooknameFound,WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- vendored Deliciousbrains WP_Background_Process; dynamic hook names use $this->identifier which is set per consumer. | |
| 3 | 2 | namespace WPDeveloper\BetterDocs\Admin\BackgroundProcess; |
| 4 | 3 | |
| 5 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 6 | - exit; | |
| 7 | -} | |
| 8 | - | |
| 9 | - | |
| 10 | 4 | use WPDeveloper\BetterDocs\Admin\BackgroundProcess\WP_Async_Request; |
| 11 | 5 | |
| 12 | 6 | /** |
| 13 | 7 | * WP Background Process |
| @@ -486,10 +480,9 @@ | ||
| 486 | 480 | |
| 487 | 481 | $args[] = $limit; |
| 488 | 482 | } |
| 489 | 483 | |
| 490 | - // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared,PluginCheck.Security.DirectDB.UnescapedDBParameter,WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching -- $table and $column are WP-provided ($wpdb->options/$wpdb->sitemeta) or hardcoded literals. | |
| 491 | - $items = $wpdb->get_results( $wpdb->prepare( $sql, $args ) ); | |
| 484 | + $items = $wpdb->get_results( $wpdb->prepare( $sql, $args ) ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared | |
| 492 | 485 | |
| 493 | 486 | $batches = array(); |
| 494 | 487 | |
| 495 | 488 | if ( ! empty( $items ) ) { |