Skip to content

Commit

Permalink
Merge branch 'develop' into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidsector9 authored Jul 5, 2022
2 parents abfb0b2 + 18c5b9a commit b310c1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions restricted_site_access.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ public static function admin_init() {

// settings for restricted site access.
register_setting( self::$settings_page, 'rsa_options', array( __CLASS__, 'sanitize_options' ) ); // array of fundamental options including ID and caching info.
add_settings_section( 'restricted-site-access', '', '__return_empty_string', self::$settings_page );
add_settings_section( 'restricted-site-access', __( 'Restricted Site Access', 'restricted-site-access' ), '__return_empty_string', self::$settings_page );

// Limit when additional settings fields show up.
if (
Expand Down Expand Up @@ -955,7 +955,7 @@ public static function admin_head() {
$screen->add_help_tab(
array(
'id' => 'restricted-site-access',
'title' => esc_html_x( 'Restricted Site Acccess', 'help screen title', 'restricted-site-access' ),
'title' => esc_html_x( 'Restricted Site Access', 'help screen title', 'restricted-site-access' ),
'content' => implode( PHP_EOL, $content ),
)
);
Expand Down
2 changes: 1 addition & 1 deletion tests/php/test-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function test_admin_head() {
$tabs = $screen->get_help_tabs();

$this->assertArrayHasKey( 'restricted-site-access', $tabs );
$this->assertSame( 'Restricted Site Acccess', $tabs['restricted-site-access']['title'] );
$this->assertSame( 'Restricted Site Access', $tabs['restricted-site-access']['title'] );

$content = $tabs['restricted-site-access']['content'];

Expand Down

0 comments on commit b310c1c

Please sign in to comment.