← All changes
|
includes/Admin/BackgroundProcess/WP_Background_Process.php
+8
-1
4.5.1
→
4.9.2
View file →
| @@ -1,7 +1,13 @@ | ||
| 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. | |
| 2 | 3 | namespace WPDeveloper\BetterDocs\Admin\BackgroundProcess; |
| 3 | 4 | |
| 5 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 6 | + exit; | |
| 7 | +} | |
| 8 | + | |
| 9 | + | |
| 4 | 10 | use WPDeveloper\BetterDocs\Admin\BackgroundProcess\WP_Async_Request; |
| 5 | 11 | |
| 6 | 12 | /** |
| 7 | 13 | * WP Background Process |
| @@ -480,9 +486,10 @@ | ||
| 480 | 486 | |
| 481 | 487 | $args[] = $limit; |
| 482 | 488 | } |
| 483 | 489 | |
| 484 | - $items = $wpdb->get_results( $wpdb->prepare( $sql, $args ) ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared | |
| 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 ) ); | |
| 485 | 492 | |
| 486 | 493 | $batches = array(); |
| 487 | 494 | |
| 488 | 495 | if ( ! empty( $items ) ) { |