auto-patch 638-dev-dev01-2024-05-14T20_44_36
This commit is contained in:
@@ -443,6 +443,12 @@ function relevanssi_admin_search_debugging_info( $query ) {
|
||||
function relevanssi_update_counts() {
|
||||
global $wpdb, $relevanssi_variables;
|
||||
|
||||
if ( ! current_user_can( 'manage_options' ) ) {
|
||||
die();
|
||||
}
|
||||
|
||||
check_admin_referer( 'update_counts', '_wpnonce' );
|
||||
|
||||
relevanssi_update_doc_count();
|
||||
|
||||
$terms_count = $wpdb->get_var( 'SELECT COUNT(*) FROM ' . $relevanssi_variables['relevanssi_table'] ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared,WordPress.DB.PreparedSQL.NotPrepared
|
||||
|
||||
Reference in New Issue
Block a user