Shield Security for WordPress - Version 15.0.2

Version Description

Download this release

Release Info

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

Code changes from version 15.0.1 to 15.0.2

plugin-spec.php CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "properties": {
3
- "version": "15.0.1",
4
- "release_timestamp": 1652090000,
5
- "build": "202205.0901",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
1
  {
2
  "properties": {
3
+ "version": "15.0.2",
4
+ "release_timestamp": 1652090002,
5
+ "build": "202205.0902",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
plugin.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "properties": {
3
- "version": "15.0.1",
4
- "release_timestamp": 1652090000,
5
- "build": "202205.0901",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
1
  {
2
  "properties": {
3
+ "version": "15.0.2",
4
+ "release_timestamp": 1652090002,
5
+ "build": "202205.0902",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
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.0.1
12
 
13
  No-Nonsense Security Hardening that protects WordPress against hackers, malicious bots, and spammers (no captchas!). Now with exclusive ShieldNET Technology.
14
 
8
  Requires PHP: 7.0
9
  Recommended PHP: 7.4
10
  Tested up to: 6.0
11
+ Stable tag: 15.0.2
12
 
13
  No-Nonsense Security Hardening that protects WordPress against hackers, malicious bots, and spammers (no captchas!). Now with exclusive ShieldNET Technology.
14
 
src/lib/vendor/fernleafsystems/wordpress-services/src/Utilities/Consumers/RequestCacheConsumer.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php declare( strict_types=1 );
2
+
3
+ namespace FernleafSystems\Wordpress\Services\Utilities\Consumers;
4
+
5
+ use FernleafSystems\Wordpress\Services\Utilities\Options\Transient;
6
+
7
+ trait RequestCacheConsumer {
8
+
9
+ private static $cache;
10
+
11
+ /**
12
+ * @param mixed|null $result
13
+ * @return $this
14
+ */
15
+ protected function addCache( string $key, $result ) {
16
+ $store = $this->loadCacheStore();
17
+ $store[ $key ] = $result;
18
+ self::$cache = $store;
19
+ Transient::Set( 'apto-request-cache-consumer', self::$cache, 60 );
20
+ return $this;
21
+ }
22
+
23
+ /**
24
+ * @return mixed|null
25
+ */
26
+ protected function getCache( string $key ) {
27
+ return $this->loadCacheStore()[ $key ] ?? null;
28
+ }
29
+
30
+ private function loadCacheStore() :array {
31
+ if ( !isset( self::$cache ) ) {
32
+ self::$cache = Transient::Get( 'apto-request-cache-consumer' );
33
+ if ( !is_array( self::$cache ) ) {
34
+ self::$cache = [];
35
+ }
36
+ }
37
+ return self::$cache;
38
+ }
39
+ }
src/lib/vendor/fernleafsystems/wordpress-services/src/Utilities/WpOrg/Base/ApiBase.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php declare( strict_types=1 );
2
+
3
+ namespace FernleafSystems\Wordpress\Services\Utilities\WpOrg\Base;
4
+
5
+ use FernleafSystems\Utilities\Data\Adapter\DynPropertiesClass;
6
+ use FernleafSystems\Wordpress\Services\Utilities\Consumers\RequestCacheConsumer;
7
+
8
+ /**
9
+ * @property array $fields
10
+ */
11
+ abstract class ApiBase extends DynPropertiesClass {
12
+
13
+ use RequestCacheConsumer;
14
+
15
+ /**
16
+ * @return array[]
17
+ */
18
+ protected function defaultParams() :array {
19
+ return [];
20
+ }
21
+ }