Version Description
Download this release
Release Info
| Developer | themeisle |
| Plugin | |
| Version | 2.9.16 |
| Comparing to | |
| See all releases | |
Code changes from version 2.9.15 to 2.9.16
- CHANGELOG.md +4 -0
- core/includes/class-orbit-fox.php +1 -1
- obfx_modules/google-analytics/init.php +8 -5
- readme.md +7 -0
- readme.txt +7 -0
- themeisle-companion.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
##### [Version 2.9.15](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.14...v2.9.15) (2020-08-12)
|
| 2 |
|
| 3 |
fix: notice showing up in the editor on the new WordPress version for users with WP_DEBUG turned on
|
| 1 |
+
##### [Version 2.9.16](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.15...v2.9.16) (2020-08-12)
|
| 2 |
+
|
| 3 |
+
fix: add permission_callback for analytics module
|
| 4 |
+
|
| 5 |
##### [Version 2.9.15](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.14...v2.9.15) (2020-08-12)
|
| 6 |
|
| 7 |
fix: notice showing up in the editor on the new WordPress version for users with WP_DEBUG turned on
|
core/includes/class-orbit-fox.php
CHANGED
|
@@ -69,7 +69,7 @@ class Orbit_Fox {
|
|
| 69 |
|
| 70 |
$this->plugin_name = 'orbit-fox';
|
| 71 |
|
| 72 |
-
$this->version = '2.9.
|
| 73 |
|
| 74 |
$this->load_dependencies();
|
| 75 |
$this->set_locale();
|
| 69 |
|
| 70 |
$this->plugin_name = 'orbit-fox';
|
| 71 |
|
| 72 |
+
$this->version = '2.9.16';
|
| 73 |
|
| 74 |
$this->load_dependencies();
|
| 75 |
$this->set_locale();
|
obfx_modules/google-analytics/init.php
CHANGED
|
@@ -96,8 +96,11 @@ class Google_Analytics_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
| 96 |
array(
|
| 97 |
'methods' => WP_REST_Server::CREATABLE,
|
| 98 |
'callback' => array( $this, 'refresh_tracking_links' ),
|
|
|
|
|
|
|
|
|
|
| 99 |
),
|
| 100 |
-
)
|
| 101 |
);
|
| 102 |
}
|
| 103 |
|
|
@@ -147,7 +150,7 @@ class Google_Analytics_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
| 147 |
array(
|
| 148 |
'headers' => $req_headers,
|
| 149 |
'body' => $req_body,
|
| 150 |
-
)
|
| 151 |
);
|
| 152 |
|
| 153 |
return $request;
|
|
@@ -185,7 +188,7 @@ class Google_Analytics_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
| 185 |
array(
|
| 186 |
'url' => $this->get_endpoint_url( '/obfx-analytics' ),
|
| 187 |
'nonce' => wp_create_nonce( 'wp_rest' ),
|
| 188 |
-
)
|
| 189 |
);
|
| 190 |
wp_enqueue_script( $script_handle );
|
| 191 |
}
|
|
@@ -230,7 +233,7 @@ class Google_Analytics_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
| 230 |
'site_url' => home_url(),
|
| 231 |
'site_return' => admin_url( 'admin.php?page=obfx_companion#obfx-mod-google-analytics' ),
|
| 232 |
),
|
| 233 |
-
$url
|
| 234 |
);
|
| 235 |
|
| 236 |
return array(
|
|
@@ -318,7 +321,7 @@ class Google_Analytics_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
| 318 |
array(
|
| 319 |
'headers' => $req_headers,
|
| 320 |
'body' => $req_body,
|
| 321 |
-
)
|
| 322 |
);
|
| 323 |
|
| 324 |
if ( empty( $request['body'] ) ) {
|
| 96 |
array(
|
| 97 |
'methods' => WP_REST_Server::CREATABLE,
|
| 98 |
'callback' => array( $this, 'refresh_tracking_links' ),
|
| 99 |
+
'permission_callback' => function () {
|
| 100 |
+
return current_user_can( 'manage_options' );
|
| 101 |
+
},
|
| 102 |
),
|
| 103 |
+
)
|
| 104 |
);
|
| 105 |
}
|
| 106 |
|
| 150 |
array(
|
| 151 |
'headers' => $req_headers,
|
| 152 |
'body' => $req_body,
|
| 153 |
+
)
|
| 154 |
);
|
| 155 |
|
| 156 |
return $request;
|
| 188 |
array(
|
| 189 |
'url' => $this->get_endpoint_url( '/obfx-analytics' ),
|
| 190 |
'nonce' => wp_create_nonce( 'wp_rest' ),
|
| 191 |
+
)
|
| 192 |
);
|
| 193 |
wp_enqueue_script( $script_handle );
|
| 194 |
}
|
| 233 |
'site_url' => home_url(),
|
| 234 |
'site_return' => admin_url( 'admin.php?page=obfx_companion#obfx-mod-google-analytics' ),
|
| 235 |
),
|
| 236 |
+
$url
|
| 237 |
);
|
| 238 |
|
| 239 |
return array(
|
| 321 |
array(
|
| 322 |
'headers' => $req_headers,
|
| 323 |
'body' => $req_body,
|
| 324 |
+
)
|
| 325 |
);
|
| 326 |
|
| 327 |
if ( empty( $request['body'] ) ) {
|
readme.md
CHANGED
|
@@ -109,6 +109,13 @@ Activating the Orbit Fox plugin is just like any other plugin. If you've uploade
|
|
| 109 |
|
| 110 |
## Changelog ##
|
| 111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
##### [Version 2.9.15](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.14...v2.9.15) (2020-08-12)
|
| 113 |
|
| 114 |
fix: notice showing up in the editor on the new WordPress version for users with WP_DEBUG turned on
|
| 109 |
|
| 110 |
## Changelog ##
|
| 111 |
|
| 112 |
+
##### [Version 2.9.16](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.15...v2.9.16) (2020-08-12)
|
| 113 |
+
|
| 114 |
+
fix: add permission_callback for analytics module
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
|
| 119 |
##### [Version 2.9.15](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.14...v2.9.15) (2020-08-12)
|
| 120 |
|
| 121 |
fix: notice showing up in the editor on the new WordPress version for users with WP_DEBUG turned on
|
readme.txt
CHANGED
|
@@ -109,6 +109,13 @@ Activating the Orbit Fox plugin is just like any other plugin. If you've uploade
|
|
| 109 |
|
| 110 |
== Changelog ==
|
| 111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
##### [Version 2.9.15](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.14...v2.9.15) (2020-08-12)
|
| 113 |
|
| 114 |
fix: notice showing up in the editor on the new WordPress version for users with WP_DEBUG turned on
|
| 109 |
|
| 110 |
== Changelog ==
|
| 111 |
|
| 112 |
+
##### [Version 2.9.16](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.15...v2.9.16) (2020-08-12)
|
| 113 |
+
|
| 114 |
+
fix: add permission_callback for analytics module
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
|
| 119 |
##### [Version 2.9.15](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.14...v2.9.15) (2020-08-12)
|
| 120 |
|
| 121 |
fix: notice showing up in the editor on the new WordPress version for users with WP_DEBUG turned on
|
themeisle-companion.php
CHANGED
|
@@ -15,7 +15,7 @@
|
|
| 15 |
* Plugin Name: Orbit Fox Companion
|
| 16 |
* Plugin URI: https://orbitfox.com/
|
| 17 |
* Description: This swiss-knife plugin comes with a quality template library, menu/sharing icons modules, Gutenberg blocks, and newly added Elementor/BeaverBuilder page builder widgets on each release.
|
| 18 |
-
* Version: 2.9.
|
| 19 |
* Author: Themeisle
|
| 20 |
* Author URI: https://orbitfox.com/
|
| 21 |
* License: GPL-2.0+
|
| 15 |
* Plugin Name: Orbit Fox Companion
|
| 16 |
* Plugin URI: https://orbitfox.com/
|
| 17 |
* Description: This swiss-knife plugin comes with a quality template library, menu/sharing icons modules, Gutenberg blocks, and newly added Elementor/BeaverBuilder page builder widgets on each release.
|
| 18 |
+
* Version: 2.9.16
|
| 19 |
* Author: Themeisle
|
| 20 |
* Author URI: https://orbitfox.com/
|
| 21 |
* License: GPL-2.0+
|
vendor/autoload.php
CHANGED
|
@@ -4,4 +4,4 @@
|
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
-
return
|
| 4 |
|
| 5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
| 6 |
|
| 7 |
+
return ComposerAutoloaderInit9313e49ba9f88cb404cce7aae632f5f0::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
-
class
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitab380c53156f699feb0b85b4e5d5f97e
|
|
| 22 |
return self::$loader;
|
| 23 |
}
|
| 24 |
|
| 25 |
-
spl_autoload_register(array('
|
| 26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 27 |
-
spl_autoload_unregister(array('
|
| 28 |
|
| 29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 30 |
if ($useStaticLoader) {
|
| 31 |
require_once __DIR__ . '/autoload_static.php';
|
| 32 |
|
| 33 |
-
call_user_func(\Composer\Autoload\
|
| 34 |
} else {
|
| 35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 36 |
foreach ($map as $namespace => $path) {
|
|
@@ -51,19 +51,19 @@ class ComposerAutoloaderInitab380c53156f699feb0b85b4e5d5f97e
|
|
| 51 |
$loader->register(true);
|
| 52 |
|
| 53 |
if ($useStaticLoader) {
|
| 54 |
-
$includeFiles = Composer\Autoload\
|
| 55 |
} else {
|
| 56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 57 |
}
|
| 58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 59 |
-
|
| 60 |
}
|
| 61 |
|
| 62 |
return $loader;
|
| 63 |
}
|
| 64 |
}
|
| 65 |
|
| 66 |
-
function
|
| 67 |
{
|
| 68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 69 |
require $file;
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInit9313e49ba9f88cb404cce7aae632f5f0
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 22 |
return self::$loader;
|
| 23 |
}
|
| 24 |
|
| 25 |
+
spl_autoload_register(array('ComposerAutoloaderInit9313e49ba9f88cb404cce7aae632f5f0', 'loadClassLoader'), true, true);
|
| 26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit9313e49ba9f88cb404cce7aae632f5f0', 'loadClassLoader'));
|
| 28 |
|
| 29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 30 |
if ($useStaticLoader) {
|
| 31 |
require_once __DIR__ . '/autoload_static.php';
|
| 32 |
|
| 33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit9313e49ba9f88cb404cce7aae632f5f0::getInitializer($loader));
|
| 34 |
} else {
|
| 35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 36 |
foreach ($map as $namespace => $path) {
|
| 51 |
$loader->register(true);
|
| 52 |
|
| 53 |
if ($useStaticLoader) {
|
| 54 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit9313e49ba9f88cb404cce7aae632f5f0::$files;
|
| 55 |
} else {
|
| 56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 57 |
}
|
| 58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 59 |
+
composerRequire9313e49ba9f88cb404cce7aae632f5f0($fileIdentifier, $file);
|
| 60 |
}
|
| 61 |
|
| 62 |
return $loader;
|
| 63 |
}
|
| 64 |
}
|
| 65 |
|
| 66 |
+
function composerRequire9313e49ba9f88cb404cce7aae632f5f0($fileIdentifier, $file)
|
| 67 |
{
|
| 68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 69 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
-
class
|
| 8 |
{
|
| 9 |
public static $files = array (
|
| 10 |
'7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
|
|
@@ -263,9 +263,9 @@ class ComposerStaticInitab380c53156f699feb0b85b4e5d5f97e
|
|
| 263 |
public static function getInitializer(ClassLoader $loader)
|
| 264 |
{
|
| 265 |
return \Closure::bind(function () use ($loader) {
|
| 266 |
-
$loader->prefixLengthsPsr4 =
|
| 267 |
-
$loader->prefixDirsPsr4 =
|
| 268 |
-
$loader->classMap =
|
| 269 |
|
| 270 |
}, null, ClassLoader::class);
|
| 271 |
}
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
+
class ComposerStaticInit9313e49ba9f88cb404cce7aae632f5f0
|
| 8 |
{
|
| 9 |
public static $files = array (
|
| 10 |
'7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
|
| 263 |
public static function getInitializer(ClassLoader $loader)
|
| 264 |
{
|
| 265 |
return \Closure::bind(function () use ($loader) {
|
| 266 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit9313e49ba9f88cb404cce7aae632f5f0::$prefixLengthsPsr4;
|
| 267 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit9313e49ba9f88cb404cce7aae632f5f0::$prefixDirsPsr4;
|
| 268 |
+
$loader->classMap = ComposerStaticInit9313e49ba9f88cb404cce7aae632f5f0::$classMap;
|
| 269 |
|
| 270 |
}, null, ClassLoader::class);
|
| 271 |
}
|
