NitroPack - Version 1.5.14

Version Description

  • Bug fix: Resolve an issue with activate/deactivate if opcache_reset is not available
Download this release

Release Info

Developer nitropack
Plugin Icon 128x128 NitroPack
Version 1.5.14
Comparing to
See all releases

Code changes from version 1.5.13 to 1.5.14

constants.php CHANGED
@@ -6,7 +6,7 @@ function nitropack_trailingslashit($string) {
6
  return rtrim( $string, '/\\' ) . '/';
7
  }
8
 
9
- define( 'NITROPACK_VERSION', '1.5.13' );
10
  define( 'NITROPACK_OPTION_GROUP', 'nitropack' );
11
  define( 'NITROPACK_DATA_DIR', nitropack_trailingslashit(WP_CONTENT_DIR) . 'nitropack' );
12
  define( 'NITROPACK_CONFIG_FILE', nitropack_trailingslashit(NITROPACK_DATA_DIR) . 'config.json' );
6
  return rtrim( $string, '/\\' ) . '/';
7
  }
8
 
9
+ define( 'NITROPACK_VERSION', '1.5.14' );
10
  define( 'NITROPACK_OPTION_GROUP', 'nitropack' );
11
  define( 'NITROPACK_DATA_DIR', nitropack_trailingslashit(WP_CONTENT_DIR) . 'nitropack' );
12
  define( 'NITROPACK_CONFIG_FILE', nitropack_trailingslashit(NITROPACK_DATA_DIR) . 'config.json' );
functions.php CHANGED
@@ -57,7 +57,10 @@ function nitropack_activate() {
57
  } else {
58
  setcookie("nitropack_after_activate_notice", 1, time() + 3600);
59
  }
60
- opcache_reset();
 
 
 
61
  }
62
 
63
  function nitropack_deactivate() {
@@ -74,7 +77,10 @@ function nitropack_deactivate() {
74
  if (get_nitropack()->isConnected()) {
75
  nitropack_event("disable_extension");
76
  }
77
- opcache_reset();
 
 
 
78
  }
79
 
80
  function nitropack_install_advanced_cache() {
57
  } else {
58
  setcookie("nitropack_after_activate_notice", 1, time() + 3600);
59
  }
60
+
61
+ if (function_exists("opcache_reset")) {
62
+ opcache_reset();
63
+ }
64
  }
65
 
66
  function nitropack_deactivate() {
77
  if (get_nitropack()->isConnected()) {
78
  nitropack_event("disable_extension");
79
  }
80
+
81
+ if (function_exists("opcache_reset")) {
82
+ opcache_reset();
83
+ }
84
  }
85
 
86
  function nitropack_install_advanced_cache() {
main.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: NitroPack
4
  Plugin URI: https://nitropack.io/platform/wordpress
5
  Description: Everything you need for a fast website. Simple set up, easy to use, awesome support. Caching, Lazy Loading, Minification, Defer CSS/JS, CDN and more!
6
- Version: 1.5.13
7
  Author: NitroPack LLC
8
  Author URI: https://nitropack.io/
9
  License: GPL2
3
  Plugin Name: NitroPack
4
  Plugin URI: https://nitropack.io/platform/wordpress
5
  Description: Everything you need for a fast website. Simple set up, easy to use, awesome support. Caching, Lazy Loading, Minification, Defer CSS/JS, CDN and more!
6
+ Version: 1.5.14
7
  Author: NitroPack LLC
8
  Author URI: https://nitropack.io/
9
  License: GPL2
nitropack-sdk/vendor/autoload.php CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
- return ComposerAutoloaderInit8fcbb1a5ffa2542d92b974779798cb81::getLoader();
9
 
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInit3dcb0cd3b9802939155e959c3c6cfd5d::getLoader();
nitropack-sdk/vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit8fcbb1a5ffa2542d92b974779798cb81
6
  {
7
  private static $loader;
8
 
@@ -22,12 +22,12 @@ class ComposerAutoloaderInit8fcbb1a5ffa2542d92b974779798cb81
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit8fcbb1a5ffa2542d92b974779798cb81', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit8fcbb1a5ffa2542d92b974779798cb81', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInit8fcbb1a5ffa2542d92b974779798cb81::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit3dcb0cd3b9802939155e959c3c6cfd5d
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit3dcb0cd3b9802939155e959c3c6cfd5d', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit3dcb0cd3b9802939155e959c3c6cfd5d', 'loadClassLoader'));
28
 
29
  require __DIR__ . '/autoload_static.php';
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit3dcb0cd3b9802939155e959c3c6cfd5d::getInitializer($loader));
31
 
32
  $loader->register(true);
33
 
nitropack-sdk/vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit8fcbb1a5ffa2542d92b974779798cb81
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'N' =>
@@ -33,9 +33,9 @@ class ComposerStaticInit8fcbb1a5ffa2542d92b974779798cb81
33
  public static function getInitializer(ClassLoader $loader)
34
  {
35
  return \Closure::bind(function () use ($loader) {
36
- $loader->prefixLengthsPsr4 = ComposerStaticInit8fcbb1a5ffa2542d92b974779798cb81::$prefixLengthsPsr4;
37
- $loader->prefixDirsPsr4 = ComposerStaticInit8fcbb1a5ffa2542d92b974779798cb81::$prefixDirsPsr4;
38
- $loader->classMap = ComposerStaticInit8fcbb1a5ffa2542d92b974779798cb81::$classMap;
39
 
40
  }, null, ClassLoader::class);
41
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit3dcb0cd3b9802939155e959c3c6cfd5d
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'N' =>
33
  public static function getInitializer(ClassLoader $loader)
34
  {
35
  return \Closure::bind(function () use ($loader) {
36
+ $loader->prefixLengthsPsr4 = ComposerStaticInit3dcb0cd3b9802939155e959c3c6cfd5d::$prefixLengthsPsr4;
37
+ $loader->prefixDirsPsr4 = ComposerStaticInit3dcb0cd3b9802939155e959c3c6cfd5d::$prefixDirsPsr4;
38
+ $loader->classMap = ComposerStaticInit3dcb0cd3b9802939155e959c3c6cfd5d::$classMap;
39
 
40
  }, null, ClassLoader::class);
41
  }
nitropack-sdk/vendor/composer/installed.php CHANGED
@@ -3,7 +3,7 @@
3
  'name' => 'nitropack/nitropackcloud-sdk',
4
  'pretty_version' => 'dev-master',
5
  'version' => 'dev-master',
6
- 'reference' => '68159c0e85c7117da2511caece6494e8c2ecff5e',
7
  'type' => 'package',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
@@ -24,7 +24,7 @@
24
  'nitropack/nitropackcloud-sdk' => array(
25
  'pretty_version' => 'dev-master',
26
  'version' => 'dev-master',
27
- 'reference' => '68159c0e85c7117da2511caece6494e8c2ecff5e',
28
  'type' => 'package',
29
  'install_path' => __DIR__ . '/../../',
30
  'aliases' => array(),
3
  'name' => 'nitropack/nitropackcloud-sdk',
4
  'pretty_version' => 'dev-master',
5
  'version' => 'dev-master',
6
+ 'reference' => 'a1e729a0652f85c70349a55e78ffa0bd2f0576ec',
7
  'type' => 'package',
8
  'install_path' => __DIR__ . '/../../',
9
  'aliases' => array(),
24
  'nitropack/nitropackcloud-sdk' => array(
25
  'pretty_version' => 'dev-master',
26
  'version' => 'dev-master',
27
+ 'reference' => 'a1e729a0652f85c70349a55e78ffa0bd2f0576ec',
28
  'type' => 'package',
29
  'install_path' => __DIR__ . '/../../',
30
  'aliases' => array(),
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: cache,perfomance,optimize,pagespeed,lazy load,cdn,critical css,compression
4
  Requires at least: 4.7
5
  Tested up to: 6.0.1
6
  Requires PHP: 5.6
7
- Stable tag: 1.5.13
8
  License: GNU General Public License, version 2
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -169,6 +169,9 @@ No. We’ve designed NitroPack to be a very lightweight solution that adds no CP
169
 
170
  == Changelog ==
171
 
 
 
 
172
  = 1.5.13 =
173
  * New Feature: Completely compatible with LiteSpeed servers
174
  * Improvement: The help button is now an interactive widget
4
  Requires at least: 4.7
5
  Tested up to: 6.0.1
6
  Requires PHP: 5.6
7
+ Stable tag: 1.5.14
8
  License: GNU General Public License, version 2
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
169
 
170
  == Changelog ==
171
 
172
+ = 1.5.14 =
173
+ * Bug fix: Resolve an issue with activate/deactivate if opcache_reset is not available
174
+
175
  = 1.5.13 =
176
  * New Feature: Completely compatible with LiteSpeed servers
177
  * Improvement: The help button is now an interactive widget