Version Description
Download this release
Release Info
| Developer | themeisle |
| Plugin | |
| Version | 2.9.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.9.0 to 2.9.1
- CHANGELOG.md +4 -0
- core/app/class-orbit-fox-admin.php +2 -2
- core/app/class-orbit-fox-module-factory.php +1 -4
- core/includes/class-orbit-fox.php +4 -1
- obfx_modules/beaver-widgets/modules/post-grid/includes/frontend.php +2 -2
- obfx_modules/beaver-widgets/modules/post-grid/post-grid.php +1 -1
- obfx_modules/google-analytics/init.php +1 -1
- obfx_modules/policy-notice/init.php +1 -1
- 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.0](https://github.com/Codeinwp/themeisle-companion/compare/v2.8.14...v2.9.0) (2020-02-03)
|
| 2 |
|
| 3 |
* Update dependencies
|
| 1 |
+
##### [Version 2.9.1](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.0...v2.9.1) (2020-02-05)
|
| 2 |
+
|
| 3 |
+
* Fix possible error with edge case legacy module loading.
|
| 4 |
+
|
| 5 |
#### [Version 2.9.0](https://github.com/Codeinwp/themeisle-companion/compare/v2.8.14...v2.9.0) (2020-02-03)
|
| 6 |
|
| 7 |
* Update dependencies
|
core/app/class-orbit-fox-admin.php
CHANGED
|
@@ -215,7 +215,7 @@ class Orbit_Fox_Admin {
|
|
| 215 |
* @access public
|
| 216 |
*/
|
| 217 |
public function obfx_update_module_options() {
|
| 218 |
-
$json = stripslashes( str_replace( '"', '"', $_POST['data'] ) ); //phpcs:ignore WordPress.
|
| 219 |
$data = json_decode( $json, true );
|
| 220 |
$response['type'] = 'error';
|
| 221 |
$response['message'] = __( 'Could not process the request!', 'themeisle-companion' );
|
|
@@ -375,7 +375,7 @@ class Orbit_Fox_Admin {
|
|
| 375 |
* @access public
|
| 376 |
*/
|
| 377 |
public function obfx_update_module_active_status() {
|
| 378 |
-
$json = stripslashes( str_replace( '"', '"', $_POST['data'] ) ); //phpcs:ignore WordPress.
|
| 379 |
$data = json_decode( $json, true );
|
| 380 |
$response['type'] = 'error';
|
| 381 |
$response['message'] = __( 'Could not process the request!', 'themeisle-companion' );
|
| 215 |
* @access public
|
| 216 |
*/
|
| 217 |
public function obfx_update_module_options() {
|
| 218 |
+
$json = stripslashes( str_replace( '"', '"', $_POST['data'] ) ); //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
|
| 219 |
$data = json_decode( $json, true );
|
| 220 |
$response['type'] = 'error';
|
| 221 |
$response['message'] = __( 'Could not process the request!', 'themeisle-companion' );
|
| 375 |
* @access public
|
| 376 |
*/
|
| 377 |
public function obfx_update_module_active_status() {
|
| 378 |
+
$json = stripslashes( str_replace( '"', '"', $_POST['data'] ) ); //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
|
| 379 |
$data = json_decode( $json, true );
|
| 380 |
$response['type'] = 'error';
|
| 381 |
$response['message'] = __( 'Could not process the request!', 'themeisle-companion' );
|
core/app/class-orbit-fox-module-factory.php
CHANGED
|
@@ -25,15 +25,12 @@ class Orbit_Fox_Module_Factory {
|
|
| 25 |
* @access public
|
| 26 |
* @param string $module_name The name of the module to instantiate.
|
| 27 |
* @return mixed
|
| 28 |
-
* @throws Exception Thrown if no module class exists for provided $module_name.
|
| 29 |
*/
|
| 30 |
public static function build( $module_name ) {
|
| 31 |
$module = str_replace( '-', '_', ucwords( $module_name ) ) . '_OBFX_Module';
|
| 32 |
if ( class_exists( $module ) ) {
|
| 33 |
return new $module();
|
| 34 |
}
|
| 35 |
-
|
| 36 |
-
throw new Exception( 'Invalid module name given.' );
|
| 37 |
-
// @codeCoverageIgnoreEnd
|
| 38 |
}
|
| 39 |
}
|
| 25 |
* @access public
|
| 26 |
* @param string $module_name The name of the module to instantiate.
|
| 27 |
* @return mixed
|
|
|
|
| 28 |
*/
|
| 29 |
public static function build( $module_name ) {
|
| 30 |
$module = str_replace( '-', '_', ucwords( $module_name ) ) . '_OBFX_Module';
|
| 31 |
if ( class_exists( $module ) ) {
|
| 32 |
return new $module();
|
| 33 |
}
|
| 34 |
+
return false;
|
|
|
|
|
|
|
| 35 |
}
|
| 36 |
}
|
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();
|
|
@@ -130,6 +130,9 @@ class Orbit_Fox {
|
|
| 130 |
$module_factory = new Orbit_Fox_Module_Factory();
|
| 131 |
foreach ( $modules_to_load as $module_name ) {
|
| 132 |
$module = $module_factory::build( $module_name );
|
|
|
|
|
|
|
|
|
|
| 133 |
$global_settings->register_module_reference( $module_name, $module );
|
| 134 |
if ( $module->enable_module() ) {
|
| 135 |
$module->register_loader( $this->get_loader() );
|
| 69 |
|
| 70 |
$this->plugin_name = 'orbit-fox';
|
| 71 |
|
| 72 |
+
$this->version = '2.9.1';
|
| 73 |
|
| 74 |
$this->load_dependencies();
|
| 75 |
$this->set_locale();
|
| 130 |
$module_factory = new Orbit_Fox_Module_Factory();
|
| 131 |
foreach ( $modules_to_load as $module_name ) {
|
| 132 |
$module = $module_factory::build( $module_name );
|
| 133 |
+
if ( $module === false ) {
|
| 134 |
+
continue;
|
| 135 |
+
}
|
| 136 |
$global_settings->register_module_reference( $module_name, $module );
|
| 137 |
if ( $module->enable_module() ) {
|
| 138 |
$module->register_loader( $this->get_loader() );
|
obfx_modules/beaver-widgets/modules/post-grid/includes/frontend.php
CHANGED
|
@@ -181,8 +181,8 @@ if ( ! function_exists( 'obfx_show_post_grid_meta' ) ) {
|
|
| 181 |
/* translators: %s: post title */
|
| 182 |
_x( 'One comment', 'comments title', 'themeisle-companion' );
|
| 183 |
} else {
|
| 184 |
-
esc_html(
|
| 185 |
-
|
| 186 |
/* translators: 1: number of comments, 2: post title */
|
| 187 |
_nx( //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
| 188 |
'%1$s Comment',
|
| 181 |
/* translators: %s: post title */
|
| 182 |
_x( 'One comment', 'comments title', 'themeisle-companion' );
|
| 183 |
} else {
|
| 184 |
+
echo esc_html(
|
| 185 |
+
sprintf(
|
| 186 |
/* translators: 1: number of comments, 2: post title */
|
| 187 |
_nx( //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
| 188 |
'%1$s Comment',
|
obfx_modules/beaver-widgets/modules/post-grid/post-grid.php
CHANGED
|
@@ -36,7 +36,7 @@ class PostGridModule extends FLBuilderModule {
|
|
| 36 |
/**
|
| 37 |
* Register the module and its form settings.
|
| 38 |
*/
|
| 39 |
-
$image_sizes = get_intermediate_image_sizes(); //phpcs:ignore WordPressVIPMinimum.
|
| 40 |
$choices = array();
|
| 41 |
if ( ! empty( $image_sizes ) ) {
|
| 42 |
foreach ( $image_sizes as $size ) {
|
| 36 |
/**
|
| 37 |
* Register the module and its form settings.
|
| 38 |
*/
|
| 39 |
+
$image_sizes = get_intermediate_image_sizes(); //phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.get_intermediate_image_sizes_get_intermediate_image_sizes
|
| 40 |
$choices = array();
|
| 41 |
if ( ! empty( $image_sizes ) ) {
|
| 42 |
foreach ( $image_sizes as $size ) {
|
obfx_modules/google-analytics/init.php
CHANGED
|
@@ -114,7 +114,7 @@ class Google_Analytics_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
| 114 |
|
| 115 |
$obfx_token = get_option( 'obfx_token', '' );
|
| 116 |
|
| 117 |
-
if ( ( $_POST['deactivate'] === 'unregister' ) ) { //phpcs:ignore WordPress.
|
| 118 |
return $this->unregister_website( $obfx_token );
|
| 119 |
}
|
| 120 |
if ( empty( $obfx_token ) ) {
|
| 114 |
|
| 115 |
$obfx_token = get_option( 'obfx_token', '' );
|
| 116 |
|
| 117 |
+
if ( ( $_POST['deactivate'] === 'unregister' ) ) { //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
|
| 118 |
return $this->unregister_website( $obfx_token );
|
| 119 |
}
|
| 120 |
if ( empty( $obfx_token ) ) {
|
obfx_modules/policy-notice/init.php
CHANGED
|
@@ -145,7 +145,7 @@ class Policy_Notice_OBFX_Module extends Orbit_Fox_Module_Abstract {
|
|
| 145 |
$this->loader->add_action( $this->get_slug() . '_before_options_save', $this, 'before_options_save', 10, 1 );
|
| 146 |
|
| 147 |
// if the cookie policy is already accepted we quit.
|
| 148 |
-
if ( isset( $_COOKIE['obfx-policy-consent'] ) && 'accepted' === $_COOKIE['obfx-policy-consent'] ) { //phpcs:ignore
|
| 149 |
return;
|
| 150 |
}
|
| 151 |
|
| 145 |
$this->loader->add_action( $this->get_slug() . '_before_options_save', $this, 'before_options_save', 10, 1 );
|
| 146 |
|
| 147 |
// if the cookie policy is already accepted we quit.
|
| 148 |
+
if ( isset( $_COOKIE['obfx-policy-consent'] ) && 'accepted' === $_COOKIE['obfx-policy-consent'] ) { //phpcs:ignore WordPressVIPMinimum.Variables.RestrictedVariables.cache_constraints___COOKIE
|
| 149 |
return;
|
| 150 |
}
|
| 151 |
|
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.0](https://github.com/Codeinwp/themeisle-companion/compare/v2.8.14...v2.9.0) (2020-02-03)
|
| 113 |
|
| 114 |
* Update dependencies
|
| 109 |
|
| 110 |
## Changelog ##
|
| 111 |
|
| 112 |
+
##### [Version 2.9.1](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.0...v2.9.1) (2020-02-05)
|
| 113 |
+
|
| 114 |
+
* Fix possible error with edge case legacy module loading.
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
|
| 119 |
#### [Version 2.9.0](https://github.com/Codeinwp/themeisle-companion/compare/v2.8.14...v2.9.0) (2020-02-03)
|
| 120 |
|
| 121 |
* Update dependencies
|
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.0](https://github.com/Codeinwp/themeisle-companion/compare/v2.8.14...v2.9.0) (2020-02-03)
|
| 113 |
|
| 114 |
* Update dependencies
|
| 109 |
|
| 110 |
== Changelog ==
|
| 111 |
|
| 112 |
+
##### [Version 2.9.1](https://github.com/Codeinwp/themeisle-companion/compare/v2.9.0...v2.9.1) (2020-02-05)
|
| 113 |
+
|
| 114 |
+
* Fix possible error with edge case legacy module loading.
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
|
| 119 |
#### [Version 2.9.0](https://github.com/Codeinwp/themeisle-companion/compare/v2.8.14...v2.9.0) (2020-02-03)
|
| 120 |
|
| 121 |
* Update dependencies
|
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.1
|
| 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 ComposerAutoloaderInit30ab55facc459163b0f79f1c5c46b092::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 |
|
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitaf2b0ef54757986e855151f5842c7fbb
|
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
-
spl_autoload_register(array('
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
-
spl_autoload_unregister(array('
|
| 25 |
|
| 26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 27 |
if ($useStaticLoader) {
|
| 28 |
require_once __DIR__ . '/autoload_static.php';
|
| 29 |
|
| 30 |
-
call_user_func(\Composer\Autoload\
|
| 31 |
} else {
|
| 32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 33 |
foreach ($map as $namespace => $path) {
|
|
@@ -48,19 +48,19 @@ class ComposerAutoloaderInitaf2b0ef54757986e855151f5842c7fbb
|
|
| 48 |
$loader->register(true);
|
| 49 |
|
| 50 |
if ($useStaticLoader) {
|
| 51 |
-
$includeFiles = Composer\Autoload\
|
| 52 |
} else {
|
| 53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 54 |
}
|
| 55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 56 |
-
|
| 57 |
}
|
| 58 |
|
| 59 |
return $loader;
|
| 60 |
}
|
| 61 |
}
|
| 62 |
|
| 63 |
-
function
|
| 64 |
{
|
| 65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 66 |
require $file;
|
| 2 |
|
| 3 |
// autoload_real.php @generated by Composer
|
| 4 |
|
| 5 |
+
class ComposerAutoloaderInit30ab55facc459163b0f79f1c5c46b092
|
| 6 |
{
|
| 7 |
private static $loader;
|
| 8 |
|
| 19 |
return self::$loader;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
spl_autoload_register(array('ComposerAutoloaderInit30ab55facc459163b0f79f1c5c46b092', 'loadClassLoader'), true, true);
|
| 23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
| 24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit30ab55facc459163b0f79f1c5c46b092', 'loadClassLoader'));
|
| 25 |
|
| 26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
| 27 |
if ($useStaticLoader) {
|
| 28 |
require_once __DIR__ . '/autoload_static.php';
|
| 29 |
|
| 30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit30ab55facc459163b0f79f1c5c46b092::getInitializer($loader));
|
| 31 |
} else {
|
| 32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
| 33 |
foreach ($map as $namespace => $path) {
|
| 48 |
$loader->register(true);
|
| 49 |
|
| 50 |
if ($useStaticLoader) {
|
| 51 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit30ab55facc459163b0f79f1c5c46b092::$files;
|
| 52 |
} else {
|
| 53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
| 54 |
}
|
| 55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
| 56 |
+
composerRequire30ab55facc459163b0f79f1c5c46b092($fileIdentifier, $file);
|
| 57 |
}
|
| 58 |
|
| 59 |
return $loader;
|
| 60 |
}
|
| 61 |
}
|
| 62 |
|
| 63 |
+
function composerRequire30ab55facc459163b0f79f1c5c46b092($fileIdentifier, $file)
|
| 64 |
{
|
| 65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
| 66 |
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',
|
|
@@ -264,9 +264,9 @@ class ComposerStaticInitaf2b0ef54757986e855151f5842c7fbb
|
|
| 264 |
public static function getInitializer(ClassLoader $loader)
|
| 265 |
{
|
| 266 |
return \Closure::bind(function () use ($loader) {
|
| 267 |
-
$loader->prefixLengthsPsr4 =
|
| 268 |
-
$loader->prefixDirsPsr4 =
|
| 269 |
-
$loader->classMap =
|
| 270 |
|
| 271 |
}, null, ClassLoader::class);
|
| 272 |
}
|
| 4 |
|
| 5 |
namespace Composer\Autoload;
|
| 6 |
|
| 7 |
+
class ComposerStaticInit30ab55facc459163b0f79f1c5c46b092
|
| 8 |
{
|
| 9 |
public static $files = array (
|
| 10 |
'7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
|
| 264 |
public static function getInitializer(ClassLoader $loader)
|
| 265 |
{
|
| 266 |
return \Closure::bind(function () use ($loader) {
|
| 267 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit30ab55facc459163b0f79f1c5c46b092::$prefixLengthsPsr4;
|
| 268 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit30ab55facc459163b0f79f1c5c46b092::$prefixDirsPsr4;
|
| 269 |
+
$loader->classMap = ComposerStaticInit30ab55facc459163b0f79f1c5c46b092::$classMap;
|
| 270 |
|
| 271 |
}, null, ClassLoader::class);
|
| 272 |
}
|
