Skip to content

Commit 7f2edaa

Browse files
authored
Hide site-wide checkbox in block confirmations on ActivityPub settings (#2114)
1 parent 7a59b4f commit 7f2edaa

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: patch
2+
Type: changed
3+
4+
Hide site-wide checkbox in block confirmations when accessed from ActivityPub settings page

templates/block-confirmation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
<p><?php esc_html_e( 'You can unblock this account later from your Blocked Actors list.', 'activitypub' ); ?></p>
5454

55-
<?php if ( current_user_can( 'manage_options' ) ) : ?>
55+
<?php if ( current_user_can( 'manage_options' ) && get_current_screen()->id !== 'settings_page_activitypub' ) : ?>
5656
<p>
5757
<label>
5858
<input type="checkbox" name="site_wide" value="1" />

templates/bulk-block-confirmation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
<p><?php esc_html_e( 'You can unblock these accounts later from your Blocked Actors list.', 'activitypub' ); ?></p>
7171

72-
<?php if ( current_user_can( 'manage_options' ) ) : ?>
72+
<?php if ( current_user_can( 'manage_options' ) && get_current_screen()->id !== 'settings_page_activitypub' ) : ?>
7373
<p>
7474
<label>
7575
<input type="checkbox" name="site_wide" value="1" />

0 commit comments

Comments
 (0)