Version Description
2018/08/03 =
Corrigido alerta do PHP sobre varivel inexistente.
Download this release
Release Info
| Developer | claudiosanches |
| Plugin | |
| Version | 2.13.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.13.0 to 2.13.1
- includes/class-wc-pagseguro.php +2 -0
- languages/woocommerce-pagseguro.pot +2 -2
- readme.txt +6 -2
- woocommerce-pagseguro.php +2 -2
includes/class-wc-pagseguro.php
CHANGED
|
@@ -131,6 +131,8 @@ class WC_PagSeguro {
|
|
| 131 |
* @return array
|
| 132 |
*/
|
| 133 |
public static function transparent_checkout_shipping_fields( $fields ) {
|
|
|
|
|
|
|
| 134 |
if ( 'transparent' === $settings['method'] && class_exists( 'Extra_Checkout_Fields_For_Brazil' ) ) {
|
| 135 |
if ( isset( $fields['shipping_neighborhood'] ) ) {
|
| 136 |
$fields['shipping_neighborhood']['required'] = true;
|
| 131 |
* @return array
|
| 132 |
*/
|
| 133 |
public static function transparent_checkout_shipping_fields( $fields ) {
|
| 134 |
+
$settings = get_option( 'woocommerce_pagseguro_settings', array( 'method' => '' ) );
|
| 135 |
+
|
| 136 |
if ( 'transparent' === $settings['method'] && class_exists( 'Extra_Checkout_Fields_For_Brazil' ) ) {
|
| 137 |
if ( isset( $fields['shipping_neighborhood'] ) ) {
|
| 138 |
$fields['shipping_neighborhood']['required'] = true;
|
languages/woocommerce-pagseguro.pot
CHANGED
|
@@ -2,10 +2,10 @@
|
|
| 2 |
# This file is distributed under the GPLv3 or later.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: WooCommerce PagSeguro 2.13.
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-pagseguro\n"
|
| 8 |
-
"POT-Creation-Date: 2018-08-
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
| 2 |
# This file is distributed under the GPLv3 or later.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: WooCommerce PagSeguro 2.13.1\n"
|
| 6 |
"Report-Msgid-Bugs-To: "
|
| 7 |
"https://wordpress.org/support/plugin/woocommerce-pagseguro\n"
|
| 8 |
+
"POT-Creation-Date: 2018-08-03 20:47:22+00:00\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=utf-8\n"
|
| 11 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://claudiosanches.com/doacoes/
|
|
| 4 |
Tags: woocommerce, pagseguro, payment
|
| 5 |
Requires at least: 4.0
|
| 6 |
Tested up to: 4.9
|
| 7 |
-
Stable tag: 2.13.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -255,6 +255,10 @@ Por favor, caso você tenha algum problema com o funcionamento do plugin, [abra
|
|
| 255 |
|
| 256 |
== Changelog ==
|
| 257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 258 |
= 2.13.0 - 2018/08/02 =
|
| 259 |
|
| 260 |
* Força o campo "Bairro" como obrigatório quando checkout transparente está ativado.
|
|
@@ -300,7 +304,7 @@ Por favor, caso você tenha algum problema com o funcionamento do plugin, [abra
|
|
| 300 |
|
| 301 |
== Upgrade Notice ==
|
| 302 |
|
| 303 |
-
= 2.13.
|
| 304 |
|
| 305 |
* Força o campo "Bairro" como obrigatório quando checkout transparente está ativado.
|
| 306 |
* Implementada baixa automática de estoque ao comprar por boleto (funciona apenas no WooCommerce 3 ou superior).
|
| 4 |
Tags: woocommerce, pagseguro, payment
|
| 5 |
Requires at least: 4.0
|
| 6 |
Tested up to: 4.9
|
| 7 |
+
Stable tag: 2.13.1
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 255 |
|
| 256 |
== Changelog ==
|
| 257 |
|
| 258 |
+
= 2.13.1 - 2018/08/03 =
|
| 259 |
+
|
| 260 |
+
* Corrigido alerta do PHP sobre variável inexistente.
|
| 261 |
+
|
| 262 |
= 2.13.0 - 2018/08/02 =
|
| 263 |
|
| 264 |
* Força o campo "Bairro" como obrigatório quando checkout transparente está ativado.
|
| 304 |
|
| 305 |
== Upgrade Notice ==
|
| 306 |
|
| 307 |
+
= 2.13.1 =
|
| 308 |
|
| 309 |
* Força o campo "Bairro" como obrigatório quando checkout transparente está ativado.
|
| 310 |
* Implementada baixa automática de estoque ao comprar por boleto (funciona apenas no WooCommerce 3 ou superior).
|
woocommerce-pagseguro.php
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
* Description: Includes PagSeguro as a payment gateway to WooCommerce.
|
| 6 |
* Author: Claudio Sanches
|
| 7 |
* Author URI: https://claudiosanches.com
|
| 8 |
-
* Version: 2.13.
|
| 9 |
* License: GPLv3 or later
|
| 10 |
* Text Domain: woocommerce-pagseguro
|
| 11 |
* Domain Path: /languages
|
|
@@ -32,7 +32,7 @@
|
|
| 32 |
defined( 'ABSPATH' ) || exit;
|
| 33 |
|
| 34 |
// Plugin constants.
|
| 35 |
-
define( 'WC_PAGSEGURO_VERSION', '2.13.
|
| 36 |
define( 'WC_PAGSEGURO_PLUGIN_FILE', __FILE__ );
|
| 37 |
|
| 38 |
if ( ! class_exists( 'WC_PagSeguro' ) ) {
|
| 5 |
* Description: Includes PagSeguro as a payment gateway to WooCommerce.
|
| 6 |
* Author: Claudio Sanches
|
| 7 |
* Author URI: https://claudiosanches.com
|
| 8 |
+
* Version: 2.13.1
|
| 9 |
* License: GPLv3 or later
|
| 10 |
* Text Domain: woocommerce-pagseguro
|
| 11 |
* Domain Path: /languages
|
| 32 |
defined( 'ABSPATH' ) || exit;
|
| 33 |
|
| 34 |
// Plugin constants.
|
| 35 |
+
define( 'WC_PAGSEGURO_VERSION', '2.13.1' );
|
| 36 |
define( 'WC_PAGSEGURO_PLUGIN_FILE', __FILE__ );
|
| 37 |
|
| 38 |
if ( ! class_exists( 'WC_PagSeguro' ) ) {
|
