From 6dfba783e1dcb5aecdeacf4fa14e650fdf62ee3b Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:04:48 +1300 Subject: [PATCH] Sync with svn: https://dotorg.trac.wordpress.org/changeset/22994 --- .../themes/wporg-developer-2023/inc/template-tags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/wp-content/themes/wporg-developer-2023/inc/template-tags.php b/source/wp-content/themes/wporg-developer-2023/inc/template-tags.php index 668e33b81..b6fc88cae 100644 --- a/source/wp-content/themes/wporg-developer-2023/inc/template-tags.php +++ b/source/wp-content/themes/wporg-developer-2023/inc/template-tags.php @@ -1422,7 +1422,7 @@ function _get_functions_to_exclude_from_uses() { $ids = $wpdb->get_col( "SELECT p2p_to - FROM {$wpdb->p2p} p2p + FROM {$wpdb->prefix}p2p p2p WHERE p2p_type IN ( 'methods_to_functions', 'functions_to_functions', 'methods_to_methods', 'functions_to_methods' ) GROUP BY p2p_to HAVING COUNT(*) > 50"