We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e272f commit bf01c10Copy full SHA for bf01c10
includes/wp-admin/class-heartbeat.php
@@ -29,6 +29,11 @@ public static function init() {
29
* Enqueue scripts and localize data for the Following list table.
30
*/
31
public static function enqueue_scripts() {
32
+ $tab = \sanitize_text_field( \wp_unslash( $_GET['tab'] ?? 'welcome' ) ); // phpcs:ignore WordPress.Security.NonceVerification
33
+ if ( \get_current_screen()->id === 'settings_page_activitypub' && 'following' !== $tab ) {
34
+ return;
35
+ }
36
+
37
// Get the current user ID.
38
$user_id = \get_current_screen()->id === 'settings_page_activitypub'
39
? Actors::BLOG_USER_ID
0 commit comments