Shield Security for WordPress - Version 15.1.9

Version Description

Download this release

Release Info

Developer paultgoodchild
Plugin Icon 128x128 Shield Security for WordPress
Version 15.1.9
Comparing to
See all releases

Code changes from version 15.1.8 to 15.1.9

cl.json CHANGED
@@ -122,6 +122,16 @@
122
  "type": "fixed"
123
  }
124
  ]
 
 
 
 
 
 
 
 
 
 
125
  }
126
  ]
127
  },
122
  "type": "fixed"
123
  }
124
  ]
125
+ },
126
+ {
127
+ "version": "9",
128
+ "released_at": 1659619000,
129
+ "items": [
130
+ {
131
+ "title": "Mitigate a fatal error caused by the latest wpForo plugin passing NULL to locale filters.",
132
+ "type": "fixed"
133
+ }
134
+ ]
135
  }
136
  ]
137
  },
icwp-wpsf.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Shield Security
4
  * Plugin URI: https://shsec.io/2f
5
  * Description: Powerful, Easy-To-Use #1 Rated WordPress Security System
6
- * Version: 15.1.8
7
  * Text Domain: wp-simple-firewall
8
  * Domain Path: /languages
9
  * Author: Shield Security
3
  * Plugin Name: Shield Security
4
  * Plugin URI: https://shsec.io/2f
5
  * Description: Powerful, Easy-To-Use #1 Rated WordPress Security System
6
+ * Version: 15.1.9
7
  * Text Domain: wp-simple-firewall
8
  * Domain Path: /languages
9
  * Author: Shield Security
plugin-spec.php CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "properties": {
3
- "version": "15.1.8",
4
- "release_timestamp": 1659440300,
5
- "build": "202208.0201",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "text_domain": "wp-simple-firewall",
1
  {
2
  "properties": {
3
+ "version": "15.1.9",
4
+ "release_timestamp": 1659619000,
5
+ "build": "202208.0401",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "text_domain": "wp-simple-firewall",
plugin.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "properties": {
3
- "version": "15.1.8",
4
- "release_timestamp": 1659440300,
5
- "build": "202208.0201",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "text_domain": "wp-simple-firewall",
1
  {
2
  "properties": {
3
+ "version": "15.1.9",
4
+ "release_timestamp": 1659619000,
5
+ "build": "202208.0401",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "text_domain": "wp-simple-firewall",
readme.txt CHANGED
@@ -8,7 +8,7 @@ Requires at least: 3.7
8
  Requires PHP: 7.0
9
  Recommended PHP: 7.4
10
  Tested up to: 6.0
11
- Stable tag: 15.1.8
12
 
13
  Bad Bots Are Your #1 Security Risk. Malware is a symptom of poor security, not the cause. Discover the advantage of powerful security over marketing.
14
 
8
  Requires PHP: 7.0
9
  Recommended PHP: 7.4
10
  Tested up to: 6.0
11
+ Stable tag: 15.1.9
12
 
13
  Bad Bots Are Your #1 Security Risk. Malware is a symptom of poor security, not the cause. Discover the advantage of powerful security over marketing.
14
 
src/lib/src/Controller/I18n/LoadTextDomain.php CHANGED
@@ -41,18 +41,18 @@ class LoadTextDomain {
41
  $con = $this->getCon();
42
 
43
  // use determine_locale() as it also considers the user's profile preference
44
- $locale = apply_filters(
45
- 'plugin_locale',
46
- function_exists( 'determine_locale' ) ? determine_locale() : Services::WpGeneral()->getLocale(),
47
- $con->getTextDomain()
48
- );
49
 
50
  /**
51
  * Cater for duplicate language translations that don't exist (yet)
52
  * E.g. where Spanish-Spain is present
53
  * This isn't ideal, and in-time we'll like full localizations, but we aren't there.
54
  */
55
- $country = substr( $locale, 0, 2 );
56
  $duplicateMappings = [
57
  'en' => 'en_GB',
58
  'es' => 'es_ES',
41
  $con = $this->getCon();
42
 
43
  // use determine_locale() as it also considers the user's profile preference
44
+ $locale = function_exists( 'determine_locale' ) ? determine_locale() : Services::WpGeneral()->getLocale();
45
+ $filteredLocale = apply_filters( 'plugin_locale', $locale, $con->getTextDomain() );
46
+ if ( !empty( $filteredLocale ) ) {
47
+ $locale = $filteredLocale;
48
+ }
49
 
50
  /**
51
  * Cater for duplicate language translations that don't exist (yet)
52
  * E.g. where Spanish-Spain is present
53
  * This isn't ideal, and in-time we'll like full localizations, but we aren't there.
54
  */
55
+ $country = substr( (string)$locale, 0, 2 );
56
  $duplicateMappings = [
57
  'en' => 'en_GB',
58
  'es' => 'es_ES',