Skip to content

Commit

Permalink
Merge pull request #372 from szepeviktor/typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
bmarshall511 authored Mar 7, 2024
2 parents d55b1f9 + 9e742f1 commit 1ddd762
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion core/admin/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function admin_notices() {
'content' => sprintf(
wp_kses(
/* translators: %1$s: Replaced with the Zero Spam settings page URL */
__( 'Zero Spam Enhanced Protection is currenlty enabled, but <strong>missing a valid license key</strong>. <a href="%1$s">Add your license key</a> to enable enhanced site protection.', 'zero-spam' ),
__( 'Zero Spam Enhanced Protection is currently enabled, but <strong>missing a valid license key</strong>. <a href="%1$s">Add your license key</a> to enable enhanced site protection.', 'zero-spam' ),
array(
'strong' => array(),
'a' => array(
Expand Down
2 changes: 1 addition & 1 deletion core/class-access.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public static function get_blocked_details( $blocked_record, $failed = false ) {
/**
* Checks if an IP has been blocked
*
* @param array $access_checks Array of exisiting access checks.
* @param array $access_checks Array of existing access checks.
* @param string $user_ip The user's IP address.
* @param array $settings The plugin settings.
*/
Expand Down
8 changes: 4 additions & 4 deletions core/class-utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public static function log( $entry, $mode = 'a', $file = 'zerospam' ) {
}

/**
* Validates submitted data agaisnt the WP core disallowed list.
* Validates submitted data against the WP core disallowed list.
*/
public static function is_disallowed( $content ) {
$disallowed_keys = trim( get_option( 'disallowed_keys' ) );
Expand Down Expand Up @@ -768,7 +768,7 @@ public static function is_whitelisted( $ip ) {
* @return boolean|array False if geolocation is unavailable or array of location information.
*/
public static function geolocation( $ip ) {
// The standarized location array that will be returned.
// The standardized location array that will be returned.
$location_details = array(
'type' => false,
'hostname' => false,
Expand Down Expand Up @@ -803,7 +803,7 @@ public static function geolocation( $ip ) {
// ipstack returned an error, log it for future reference.
self::log( wp_json_encode( $ipstack_location['error'] ) );
} else {
// Add available location info to the standarized array.
// Add available location info to the standardized array.
if ( ! empty( $ipstack_location['type'] ) ) {
$location_details['type'] = $ipstack_location['type'];
}
Expand Down Expand Up @@ -856,7 +856,7 @@ public static function geolocation( $ip ) {
$ipinfo_location = ZeroSpam\Modules\IPinfoModule::get_geolocation( $ip );
if ( ! empty( $ipinfo_location ) ) {
// IPinfo token provided, process the response.
// Add available location info to the standarized array.
// Add available location info to the standardized array.
if ( ! empty( $ipinfo_location['hostname'] ) ) {
$location_details['hostname'] = $ipinfo_location['hostname'];
}
Expand Down
2 changes: 1 addition & 1 deletion includes/class-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function set( $args, $assoc_args ) {
}
}
} else {
WP_CLI::error( __( 'Opps! You didn\'t specify a setting to set (ex. wp zerospam set --share_data=enabled).', 'zero-spam' ) );
WP_CLI::error( __( 'Oops! You didn\'t specify a setting to set (ex. wp zerospam set --share_data=enabled).', 'zero-spam' ) );
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/davidwalsh/class-davidwalsh.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function settings( $settings ) {
'desc' => sprintf(
wp_kses(
/* translators: %s: url */
__( 'Comma-seperated list of custom form selectors that should use the <a href="%s" target="_blank" rel="noreferrer noopener">David Walsh technique</a>.', 'zero-spam' ),
__( 'Comma-separated list of custom form selectors that should use the <a href="%s" target="_blank" rel="noreferrer noopener">David Walsh technique</a>.', 'zero-spam' ),
array(
'a' => array(
'target' => array(),
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ If hosting with Pantheon, see their [known issues page](https://pantheon.io/docs

= v5.3.4 =

* fix(notice): removed dismiss button on intial install to ensure plugin settings are configured before use
* fix(notice): removed dismiss button on initial install to ensure plugin settings are configured before use

= v5.3.3 =

Expand Down Expand Up @@ -321,7 +321,7 @@ If hosting with Pantheon, see their [known issues page](https://pantheon.io/docs
* feat(email domains): resolves #246, ability to block disposable and malicious email domains
* perf(sharing): sharing detections optimized
* perf(disallowed list): removed the unused cron to sync disallowed words
* chore(disallowed list): updated to the lastest splorp's disallowed list
* chore(disallowed list): updated to the latest splorp's disallowed list
* docs(htaccess): added a notice & recommended max number of blocked ips when using .htaccess
* fix(ipinfo): fix for uncaught ipinfo exception

Expand Down

0 comments on commit 1ddd762

Please sign in to comment.