From b18f97c8e5fbf77f3b0b58f85c51ad606fbd44eb Mon Sep 17 00:00:00 2001
From: Dion Hulse
@@ -283,7 +283,7 @@ public function rest_generate_codes( $request ) { $count = self::codes_remaining_for_user( $user ); $title = sprintf( /* translators: %s: the site's domain */ - __( 'Two-Factor Backup Codes for %s', 'two-factor' ), + __( 'Two-Factor Recovery Codes for %s', 'two-factor' ), home_url( '/' ) ); @@ -299,11 +299,11 @@ public function rest_generate_codes( $request ) { $i18n = array( /* translators: %s: count */ - 'count' => esc_html( sprintf( _n( '%s unused code remaining, each backup code can only be used once.', '%s unused codes remaining, each backup code can only be used once.', $count, 'two-factor' ), $count ) ), + 'count' => esc_html( sprintf( _n( '%s unused code remaining, each recovery code can only be used once.', '%s unused codes remaining, each recovery code can only be used once.', $count, 'two-factor' ), $count ) ), ); if ( $request->get_param( 'enable_provider' ) && ! Two_Factor_Core::enable_provider_for_user( $user_id, 'Two_Factor_Backup_Codes' ) ) { - return new WP_Error( 'db_error', __( 'Unable to enable Backup Codes provider for this user.', 'two-factor' ), array( 'status' => 500 ) ); + return new WP_Error( 'db_error', __( 'Unable to enable recovery codes for this user.', 'two-factor' ), array( 'status' => 500 ) ); } return array( @@ -338,9 +338,9 @@ public static function codes_remaining_for_user( $user ) { public function authentication_page( $user ) { require_once ABSPATH . '/wp-admin/includes/template.php'; ?> -
- +
assertStringContainsString( 'Backup Codes', $this->provider->get_label() ); + $this->assertStringContainsString( 'Recovery Codes', $this->provider->get_label() ); } /** @@ -60,7 +60,7 @@ public function test_authentication_page() { $this->provider->authentication_page( false ); $contents = ob_get_clean(); - $this->assertStringContainsString( 'Enter a backup code.', $contents ); + $this->assertStringContainsString( 'Enter a recovery code.', $contents ); } /**