Skip to content
Snippets Groups Projects
Commit 5f0d9433 authored by Lucas García's avatar Lucas García
Browse files

Merge branch 'fix/global-variable' into 'main'

fix: dependencies global variable

See merge request coopdevs/website/wp/wp-plugins/wpct-odoo-connect!7
parents 87622e47 4bf42cf5
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
function wpct_oc_missing_dependencies() function wpct_oc_missing_dependencies()
{ {
global $WPCT_OC_DEPENDENCIES; $WPCT_OC_DEPENDENCIES = $GLOBALS['WPCT_OC_DEPENDENCIES'];
$missings = array(); $missings = array();
foreach ($WPCT_OC_DEPENDENCIES as $name => $file) { foreach ($WPCT_OC_DEPENDENCIES as $name => $file) {
if (!wpct_oc_is_plugin_active($file)) { if (!wpct_oc_is_plugin_active($file)) {
...@@ -46,4 +46,3 @@ function wpct_oc_check_dependencies() ...@@ -46,4 +46,3 @@ function wpct_oc_check_dependencies()
add_action('admin_notices', 'wpct_oc_admin_notices'); add_action('admin_notices', 'wpct_oc_admin_notices');
} }
} }
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Author URI: https://coopdevs.org * Author URI: https://coopdevs.org
* Text Domain: wpct_odoo_connect * Text Domain: wpct_odoo_connect
* Domain Path: /languages * Domain Path: /languages
* Version: 0.1.0 * Version: 0.1.7
* *
* @package Wpct_Odoo_Connect * @package Wpct_Odoo_Connect
*/ */
...@@ -27,7 +27,7 @@ require_once 'includes/user-language.php'; ...@@ -27,7 +27,7 @@ require_once 'includes/user-language.php';
require_once "includes/dependencies-checker.php"; require_once "includes/dependencies-checker.php";
// Define plugin dependencies // Define plugin dependencies
$WPCT_OC_DEPENDENCIES = array( $GLOBALS['WPCT_OC_DEPENDENCIES'] = array(
'JWT Authentication' => 'jwt-authentication-for-wp-rest-api/jwt-auth.php' 'JWT Authentication' => 'jwt-authentication-for-wp-rest-api/jwt-auth.php'
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment