From e9d3577d345df48ce4277f59d47f2d3beb7f6c7a Mon Sep 17 00:00:00 2001 From: pgarces Date: Mon, 14 Sep 2020 18:17:32 +0200 Subject: [PATCH 1/3] Permissions --- WC_Pagantis.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 ); From f79798b743d4aa0f1c12e209be813493ec89f6fe Mon Sep 17 00:00:00 2001 From: pgarces Date: Tue, 15 Sep 2020 09:24:32 +0200 Subject: [PATCH 2/3] Latest versions --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 \ From fc304f29d2dde6b363342675f6fd07d3421a05ef Mon Sep 17 00:00:00 2001 From: pgarces Date: Tue, 15 Sep 2020 09:25:00 +0200 Subject: [PATCH 3/3] Remove debug messages --- controllers/paymentController.php | 1 - controllers/paymentController4x.php | 3 --- templates/admin_header.php | 1 - 3 files changed, 5 deletions(-) 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 @@ -