PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.2
4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 All 200 releases
← All changes | includes/Admin/BackgroundProcess/WP_Background_Process.php +8 -1 4.5.14.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 ) ) {