diff --git a/inc/helpers.php b/inc/helpers.php index 686c5a4..1c1340a 100644 --- a/inc/helpers.php +++ b/inc/helpers.php @@ -47,7 +47,7 @@ function supv_is_doing_wpcli() { /** * Gets the user IP address. * - * @since {VERSION} + * @since 1.3.0 * * @return string|false The user's IP address, or false on error. */ @@ -86,7 +86,7 @@ function supv_get_user_ip() { /** * Filters the user IP address. * - * @since {VERSION} + * @since 1.3.0 * * @param string|false $user_ip The user's IP address, or false on error. */ @@ -98,7 +98,7 @@ function supv_get_user_ip() { /** * Prepares a WP Error object. * - * @since {VERSION} + * @since 1.3.0 * * @param string $error_code The error code. * @param string $error_message The error message. diff --git a/src/Admin/AJAX.php b/src/Admin/AJAX.php index c8a7857..7fe0064 100644 --- a/src/Admin/AJAX.php +++ b/src/Admin/AJAX.php @@ -200,7 +200,7 @@ public function wordpress_auto_update_policy() { /** * Outputs the Secure Login settings. * - * @since {VERSION} + * @since 1.3.0 */ public function secure_login_settings_output() { @@ -220,7 +220,7 @@ public function secure_login_settings_output() { /** * Saves the Secure Login settings to the database. * - * @since {VERSION} + * @since 1.3.0 */ public function secure_login_settings_save() { @@ -238,7 +238,7 @@ public function secure_login_settings_save() { /** * Extracts the form data. * - * @since {VERSION} + * @since 1.3.0 * * @return array */ diff --git a/src/Admin/Views/Cards/SecureLoginCardView.php b/src/Admin/Views/Cards/SecureLoginCardView.php index 7b6b8e4..2be9bfd 100644 --- a/src/Admin/Views/Cards/SecureLoginCardView.php +++ b/src/Admin/Views/Cards/SecureLoginCardView.php @@ -8,14 +8,14 @@ * The SecureLoginCardView class. * * @package supervisor - * @since {VERSION} + * @since 1.3.0 */ final class SecureLoginCardView extends AbstractView { /** * Outputs the view. * - * @since {VERSION} + * @since 1.3.0 */ public function output() { @@ -42,7 +42,7 @@ public function output() { /** * Outputs the switch component. * - * @since {VERSION} + * @since 1.3.0 * * @param array $args The component arguments. */ @@ -63,7 +63,7 @@ public function output() { /** * Outputs the Brute Force protection settings. * - * @since {VERSION} + * @since 1.3.0 * * @param bool $success True if should display the success message. */ diff --git a/src/Admin/Views/ComponentsView.php b/src/Admin/Views/ComponentsView.php index 83059ed..6a4405d 100644 --- a/src/Admin/Views/ComponentsView.php +++ b/src/Admin/Views/ComponentsView.php @@ -5,14 +5,14 @@ * The ComponentsView class. * * @package supervisor - * @since {VERSION} + * @since 1.3.0 */ final class ComponentsView { /** * Constructor. * - * @since {VERSION} + * @since 1.3.0 */ public function __construct() { @@ -22,7 +22,7 @@ public function __construct() { /** * WordPress actions and filters. * - * @since {VERSION} + * @since 1.3.0 */ public function hooks() { @@ -32,7 +32,7 @@ public function hooks() { /** * The switch component. * - * @since {VERSION} + * @since 1.3.0 * * @param array $args The component arguments. */ diff --git a/src/Core/Loader.php b/src/Core/Loader.php index 0dcc5bd..6e1a358 100644 --- a/src/Core/Loader.php +++ b/src/Core/Loader.php @@ -20,7 +20,7 @@ final class Loader { /** * The SecureLogin object. * - * @since {VERSION} + * @since 1.3.0 * * @var SecureLogin */ @@ -87,7 +87,7 @@ public function autoload() { /** * Get the SecureLogin object. * - * @since {VERSION} + * @since 1.3.0 * * @return SecureLogin */ diff --git a/src/Core/SecureLogin.php b/src/Core/SecureLogin.php index f851bcc..f26d6c8 100644 --- a/src/Core/SecureLogin.php +++ b/src/Core/SecureLogin.php @@ -5,14 +5,14 @@ * The SecureLogin class. * * @package supervisor - * @since {VERSION} + * @since 1.3.0 */ class SecureLogin { /** * The default Secure Login settings. * - * @since {VERSION} + * @since 1.3.0 * * @var array */ @@ -28,7 +28,7 @@ class SecureLogin { /** * Option to store the log of login attempts. * - * @since {VERSION} + * @since 1.3.0 * * @var string */ @@ -37,7 +37,7 @@ class SecureLogin { /** * Option to store the Secure Login settings. * - * @since {VERSION} + * @since 1.3.0 * * @var string */ @@ -46,7 +46,7 @@ class SecureLogin { /** * Constructor. * - * @since {VERSION} + * @since 1.3.0 */ public function __construct() { @@ -62,7 +62,7 @@ public function __construct() { /** * WordPress actions and filters. * - * @since {VERSION} + * @since 1.3.0 */ public function hooks() { @@ -77,7 +77,7 @@ public function hooks() { /** * Adds Supervisor's error codes to the list of 'shake_error_codes'. * - * @since {VERSION} + * @since 1.3.0 * * @param string[] $error_codes The error codes that shake the login form. * @@ -93,7 +93,7 @@ public function add_error_to_login_shake_codes( $error_codes ) { /** * Checks the login attempt. * - * @since {VERSION} + * @since 1.3.0 * * @param WP_User|WP_Error|null $user WP_User or WP_Error object from a previous callback. Default null. * @param string $username Username. If not empty, cancels the cookie authentication. @@ -110,7 +110,7 @@ public function check_login_attempt( $user, $username, $password ) { /** * Fires when a blocked IP address tries to log into your site. * - * @since {VERSION} + * @since 1.3.0 * * @param string|false $user_ip The user's IP address, or false on error. * @param string $username The username. @@ -131,7 +131,7 @@ public function check_login_attempt( $user, $username, $password ) { /** * Cleans up the expired login attempts. * - * @since {VERSION} + * @since 1.3.0 */ public function cleanup_expired_login_attempts() { // phpcs:ignore Generic.Metrics.CyclomaticComplexity.TooHigh @@ -169,7 +169,7 @@ public function cleanup_expired_login_attempts() { // phpcs:ignore Generic.Metri /** * Fires when an user IP is unblocked from your site. * - * @since {VERSION} + * @since 1.3.0 * * @param string|false $user_ip The user's IP address, or false on error. */ @@ -184,7 +184,7 @@ public function cleanup_expired_login_attempts() { // phpcs:ignore Generic.Metri * Maybe replaces the invalid_username error message. Per default, this error message indicates whether the user * exists in the database or not. * - * @since {VERSION} + * @since 1.3.0 * * @param WP_User|WP_Error|null $user WP_User or WP_Error object from a previous callback. Default null. * @param string $username Username. If not empty, cancels the cookie authentication. @@ -213,7 +213,7 @@ public function maybe_replace_invalid_username_error( $user, $username, $passwor /** * Determines whether the Secure Login setting is enabled or not. * - * @since {VERSION} + * @since 1.3.0 */ public function is_enabled() { @@ -223,7 +223,7 @@ public function is_enabled() { /** * Retrieves all settings, or the value from a given setting. * - * @since {VERSION} + * @since 1.3.0 * * @param string|false $name The setting name. * @@ -239,7 +239,7 @@ public function get_settings( $name = false ) { /** * Maybe resets the settings. * - * @since {VERSION} + * @since 1.3.0 */ public function maybe_reset_settings() { @@ -249,7 +249,7 @@ public function maybe_reset_settings() { /** * Updates the settings. * - * @since {VERSION} + * @since 1.3.0 * * @param array $new_settings The new settings. */ @@ -276,7 +276,7 @@ public function update_settings( $new_settings ) { /** * Get the login attempts. * - * @since {VERSION} + * @since 1.3.0 * * @param string $user_ip The user IP address. * @param string $username The username. @@ -297,7 +297,7 @@ private function get_login_attempts( $user_ip, $username ) { // phpcs:ignore Gen /** * Confirms whether a given username and/or IP address are blocked or not. * - * @since {VERSION} + * @since 1.3.0 * * @param string $user_ip The user IP address. * @param string $username The username. @@ -314,7 +314,7 @@ private function is_user_blocked( $user_ip, $username ) { /** * Logs the login attempt to the option. * - * @since {VERSION} + * @since 1.3.0 * * @param string $user_ip The user IP address. * @param string $username The username.