diff --git a/Dockerfile b/Dockerfile index 1f9a8f5..e9ed3a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM php:7.2-apache -ENV WORDPRESS_VERSION=5.5 -ENV WOOCOMMERCE_VERSION=4.4.1 +ENV WORDPRESS_VERSION=5.5.1 +ENV WOOCOMMERCE_VERSION=4.5.1 RUN cd /tmp \ && curl https://es.wordpress.org/wordpress-$WORDPRESS_VERSION-es_ES.tar.gz -o $WORDPRESS_VERSION-es_ES.tar.gz \ diff --git a/WC_Pagantis.php b/WC_Pagantis.php index 935b3e8..c708501 100644 --- a/WC_Pagantis.php +++ b/WC_Pagantis.php @@ -3,7 +3,7 @@ * Plugin Name: Pagantis * Plugin URI: http://www.pagantis.com/ * Description: Financiar con Pagantis - * Version: 8.6.7 + * Version: 8.6.8 * Author: Pagantis * * Text Domain: pagantis @@ -774,7 +774,8 @@ public function pagantisRegisterEndpoint() 'methods' => 'GET', 'callback' => array( $this, - 'readLogs') + 'readLogs'), + 'permission_callback' => '__return_true', ), true ); @@ -786,7 +787,8 @@ public function pagantisRegisterEndpoint() 'methods' => 'GET, POST', 'callback' => array( $this, - 'updateExtraConfig') + 'updateExtraConfig'), + 'permission_callback' => '__return_true', ), true ); @@ -798,7 +800,8 @@ public function pagantisRegisterEndpoint() 'methods' => 'GET', 'callback' => array( $this, - 'readApi') + 'readApi'), + 'permission_callback' => '__return_true', ), true ); diff --git a/controllers/paymentController.php b/controllers/paymentController.php index c78cf1d..843298a 100755 --- a/controllers/paymentController.php +++ b/controllers/paymentController.php @@ -22,7 +22,6 @@ define('__ROOT__', dirname(dirname(__FILE__))); - class WcPagantisGateway extends WC_Payment_Gateway { const METHOD_ID = "pagantis"; diff --git a/controllers/paymentController4x.php b/controllers/paymentController4x.php index 2924498..e66a94f 100644 --- a/controllers/paymentController4x.php +++ b/controllers/paymentController4x.php @@ -20,9 +20,6 @@ exit; } -define('__ROOT__', dirname(dirname(__FILE__))); - - class WcPagantis4xGateway extends WC_Payment_Gateway { const METHOD_ID = "pagantis4x"; diff --git a/templates/admin_header.php b/templates/admin_header.php index 8534a05..637c180 100644 --- a/templates/admin_header.php +++ b/templates/admin_header.php @@ -1,5 +1,4 @@ -