Skip to content

Commit

Permalink
Updates the version tag to 1.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagohillebrandt committed Nov 14, 2023
1 parent 8f11e09 commit bfd9cbb
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 35 deletions.
6 changes: 3 additions & 3 deletions inc/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand All @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/Admin/AJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand All @@ -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() {

Expand All @@ -238,7 +238,7 @@ public function secure_login_settings_save() {
/**
* Extracts the form data.
*
* @since {VERSION}
* @since 1.3.0
*
* @return array
*/
Expand Down
8 changes: 4 additions & 4 deletions src/Admin/Views/Cards/SecureLoginCardView.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand All @@ -42,7 +42,7 @@ public function output() {
/**
* Outputs the switch component.
*
* @since {VERSION}
* @since 1.3.0
*
* @param array $args The component arguments.
*/
Expand All @@ -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.
*/
Expand Down
8 changes: 4 additions & 4 deletions src/Admin/Views/ComponentsView.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {

Expand All @@ -22,7 +22,7 @@ public function __construct() {
/**
* WordPress actions and filters.
*
* @since {VERSION}
* @since 1.3.0
*/
public function hooks() {

Expand All @@ -32,7 +32,7 @@ public function hooks() {
/**
* The switch component.
*
* @since {VERSION}
* @since 1.3.0
*
* @param array $args The component arguments.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class Loader {
/**
* The SecureLogin object.
*
* @since {VERSION}
* @since 1.3.0
*
* @var SecureLogin
*/
Expand Down Expand Up @@ -87,7 +87,7 @@ public function autoload() {
/**
* Get the SecureLogin object.
*
* @since {VERSION}
* @since 1.3.0
*
* @return SecureLogin
*/
Expand Down
38 changes: 19 additions & 19 deletions src/Core/SecureLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -28,7 +28,7 @@ class SecureLogin {
/**
* Option to store the log of login attempts.
*
* @since {VERSION}
* @since 1.3.0
*
* @var string
*/
Expand All @@ -37,7 +37,7 @@ class SecureLogin {
/**
* Option to store the Secure Login settings.
*
* @since {VERSION}
* @since 1.3.0
*
* @var string
*/
Expand All @@ -46,7 +46,7 @@ class SecureLogin {
/**
* Constructor.
*
* @since {VERSION}
* @since 1.3.0
*/
public function __construct() {

Expand All @@ -62,7 +62,7 @@ public function __construct() {
/**
* WordPress actions and filters.
*
* @since {VERSION}
* @since 1.3.0
*/
public function hooks() {

Expand All @@ -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.
*
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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

Expand Down Expand Up @@ -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.
*/
Expand All @@ -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.
Expand Down Expand Up @@ -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() {

Expand All @@ -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.
*
Expand All @@ -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() {

Expand All @@ -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.
*/
Expand All @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit bfd9cbb

Please sign in to comment.