Skip to content

Commit 038a547

Browse files
committed
Fix invalid @Covers annotations in relay mode tests
Use fully qualified class name for @Covers annotations.
1 parent af13dfb commit 038a547

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

includes/class-relay.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static function handle_activity( $activity, $user_ids, $success ) {
6565
* Removes all settings sections except moderation when relay mode is active.
6666
*/
6767
public static function unhook_settings_fields() {
68-
global $wp_settings_sections, $wp_settings_fields;
68+
global $wp_settings_sections;
6969

7070
if ( ! isset( $wp_settings_sections['activitypub_settings'] ) ) {
7171
return;
@@ -77,14 +77,5 @@ public static function unhook_settings_fields() {
7777
unset( $wp_settings_sections['activitypub_settings'][ $section_id ] );
7878
}
7979
}
80-
81-
// Remove all fields except those in the moderation section.
82-
if ( isset( $wp_settings_fields['activitypub_settings'] ) ) {
83-
foreach ( $wp_settings_fields['activitypub_settings'] as $section_id => $fields ) {
84-
if ( 'activitypub_moderation' !== $section_id ) {
85-
unset( $wp_settings_fields['activitypub_settings'][ $section_id ] );
86-
}
87-
}
88-
}
8980
}
9081
}

0 commit comments

Comments
 (0)