Skip to content

Commit

Permalink
Merge pull request #265 from PluginAndPartners/master
Browse files Browse the repository at this point in the history
Version v4.6.3
  • Loading branch information
lira authored Feb 5, 2021
2 parents 455b36c + 45fdb4f commit 1bfc6ce
Show file tree
Hide file tree
Showing 62 changed files with 6,256 additions and 68 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
.vscode
.idea
.idea/
vendor/
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.6.3] - 2021-02-03
### Added
- Compatibility with WooCommerce v4.9.2
- Compatibility with WordPress v5.6.1
- Added index to all directories for more security
### Changed
- Fixed wc-api request check when is ?wc_api or wc-api
- Fixed close of rating notification

## [4.6.2] - 2021-01-06
### Changed
- Changed loading of Mercado Pago SDK at custom checkout.
- Changed loading of Mercado Pago SDK at custom checkout.

## [4.6.1] - 2021-01-04
### Added
- Add support to LearnPress
Expand Down
2 changes: 2 additions & 0 deletions assets/css/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions assets/images/MCO/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions assets/images/MLA/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions assets/images/MLB/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions assets/images/MLC/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions assets/images/MLM/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions assets/images/MLU/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions assets/images/MLV/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions assets/images/MPE/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions assets/images/bandeiras/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions assets/images/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions assets/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions assets/js/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
13 changes: 13 additions & 0 deletions changelog.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
CHANGELOG:
== Changelog ==

= v4.6.3 (06/01/2021) =

* Features
- Compatibility with WooCommerce v4.9.2
- Compatibility with WordPress v5.6.1
- Added index to all directories for more security

* Bug fixes
- Fixed wc-api request check when is ?wc_api or wc-api
- Fixed close of rating notification

= v4.6.2 (06/01/2021) =

* Bug fixes
- Changed loading of Mercado Pago SDK at custom checkout

Expand Down
2 changes: 2 additions & 0 deletions i18n/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions i18n/languages/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
Binary file modified i18n/languages/woocommerce-mercadopago-es_AR.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions i18n/languages/woocommerce-mercadopago-es_AR.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
msgid ""
msgstr ""
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n"
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
"PO-Revision-Date: 2021-01-06 14:28-0300\n"
"PO-Revision-Date: 2021-02-04 09:33-0300\n"
"X-Generator: Poedit 2.4.2\n"
"X-Domain: woocommerce-mercadopago\n"
"Last-Translator: \n"
Expand Down
Binary file modified i18n/languages/woocommerce-mercadopago-es_CL.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions i18n/languages/woocommerce-mercadopago-es_CL.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
msgid ""
msgstr ""
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n"
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
"PO-Revision-Date: 2021-01-06 14:27-0300\n"
"PO-Revision-Date: 2021-02-04 09:33-0300\n"
"X-Generator: Poedit 2.4.2\n"
"X-Domain: woocommerce-mercadopago\n"
"Last-Translator: \n"
Expand Down
Binary file modified i18n/languages/woocommerce-mercadopago-es_CO.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions i18n/languages/woocommerce-mercadopago-es_CO.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
msgid ""
msgstr ""
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n"
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
"PO-Revision-Date: 2021-01-06 14:28-0300\n"
"PO-Revision-Date: 2021-02-04 09:34-0300\n"
"X-Generator: Poedit 2.4.2\n"
"X-Domain: woocommerce-mercadopago\n"
"Last-Translator: \n"
Expand Down
Binary file modified i18n/languages/woocommerce-mercadopago-es_ES.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions i18n/languages/woocommerce-mercadopago-es_ES.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
msgid ""
msgstr ""
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n"
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
"PO-Revision-Date: 2021-01-06 14:28-0300\n"
"PO-Revision-Date: 2021-02-04 09:34-0300\n"
"X-Generator: Poedit 2.4.2\n"
"X-Domain: woocommerce-mercadopago\n"
"Last-Translator: \n"
Expand Down
Binary file modified i18n/languages/woocommerce-mercadopago-es_MX.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions i18n/languages/woocommerce-mercadopago-es_MX.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
msgid ""
msgstr ""
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n"
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
"PO-Revision-Date: 2021-01-06 14:28-0300\n"
"PO-Revision-Date: 2021-02-04 09:34-0300\n"
"X-Generator: Poedit 2.4.2\n"
"X-Domain: woocommerce-mercadopago\n"
"Last-Translator: \n"
Expand Down
Binary file modified i18n/languages/woocommerce-mercadopago-es_PE.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions i18n/languages/woocommerce-mercadopago-es_PE.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
msgid ""
msgstr ""
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n"
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
"PO-Revision-Date: 2021-01-06 14:28-0300\n"
"PO-Revision-Date: 2021-02-04 09:34-0300\n"
"X-Generator: Poedit 2.4.2\n"
"X-Domain: woocommerce-mercadopago\n"
"Last-Translator: \n"
Expand Down
Binary file modified i18n/languages/woocommerce-mercadopago-es_UY.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions i18n/languages/woocommerce-mercadopago-es_UY.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
msgid ""
msgstr ""
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n"
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
"PO-Revision-Date: 2021-01-06 14:28-0300\n"
"PO-Revision-Date: 2021-02-04 09:34-0300\n"
"X-Generator: Poedit 2.4.2\n"
"X-Domain: woocommerce-mercadopago\n"
"Last-Translator: \n"
Expand Down
Binary file modified i18n/languages/woocommerce-mercadopago-es_VE.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions i18n/languages/woocommerce-mercadopago-es_VE.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
msgid ""
msgstr ""
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n"
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
"PO-Revision-Date: 2021-01-06 14:29-0300\n"
"PO-Revision-Date: 2021-02-04 09:35-0300\n"
"X-Generator: Poedit 2.4.2\n"
"X-Domain: woocommerce-mercadopago\n"
"Last-Translator: \n"
Expand Down
Binary file modified i18n/languages/woocommerce-mercadopago-pt_BR.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions i18n/languages/woocommerce-mercadopago-pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the same license as the Mercado Pago payments for WooCommerce plugin.
msgid ""
msgstr ""
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.2\n"
"Project-Id-Version: Mercado Pago payments for WooCommerce 4.6.3\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woocommerce-mercadopago\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2019-09-05T23:48:06-04:00\n"
"PO-Revision-Date: 2021-01-06 14:29-0300\n"
"PO-Revision-Date: 2021-02-04 09:35-0300\n"
"X-Generator: Poedit 2.4.2\n"
"X-Domain: woocommerce-mercadopago\n"
"Last-Translator: \n"
Expand Down
10 changes: 3 additions & 7 deletions i18n/languages/woocommerce-mercadopago.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1161,19 +1161,15 @@ msgstr ""
msgid "Select the issuer with whom you want to process the payment"
msgstr ""

#: includes/admin/notices/WC_WooMercadoPago_Notices.php:88, includes/admin/notices/WC_WooMercadoPago_Notices.php:143, includes/admin/notices/WC_WooMercadoPago_ReviewNotice.php:120
msgid "Discard"
msgstr ""

#: includes/admin/notices/WC_WooMercadoPago_Notices.php:119
#: includes/admin/notices/WC_WooMercadoPago_Notices.php:116
msgid "See WooCommerce"
msgstr ""

#: includes/admin/notices/WC_WooMercadoPago_Notices.php:117
#: includes/admin/notices/WC_WooMercadoPago_Notices.php:114
msgid "Install WooCommerce"
msgstr ""

#: includes/admin/notices/WC_WooMercadoPago_Notices.php:114
#: includes/admin/notices/WC_WooMercadoPago_Notices.php:111
msgid "Activate WooCommerce"
msgstr ""

Expand Down
2 changes: 2 additions & 0 deletions includes/admin/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
40 changes: 17 additions & 23 deletions includes/admin/notices/WC_WooMercadoPago_Notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,15 @@ public static function getAlertFrame($message, $type)
}

$notice = '<div id="message" class="notice ' . $type . ' is-dismissible ' . $inline . '">
<div class="mp-alert-frame">
<div class="mp-left-alert">
<img src="' . plugins_url('../../assets/images/minilogo.png', plugin_dir_path(__FILE__)) . '">
<div class="mp-alert-frame">
<div class="mp-left-alert">
<img src="' . plugins_url('../../assets/images/minilogo.png', plugin_dir_path(__FILE__)) . '">
</div>
<div class="mp-right-alert">
<p>' . $message . '</p>
</div>
</div>
<div class="mp-right-alert">
<p>' . $message . '</p>
</div>
</div>
<button type="button" class="notice-dismiss">
<span class="screen-reader-text">' . __('Discard', 'woocommerce-mercadopago') . '</span>
</button>
</div>';
</div>';
if (class_exists('WC_WooMercadoPago_Module')) {
WC_WooMercadoPago_Module::$notices[] = $notice;
}
Expand Down Expand Up @@ -130,19 +127,16 @@ public static function getAlertWocommerceMiss($message, $type)
}

$notice = '<div id="message" class="notice ' . $type . ' is-dismissible ' . $inline . '">
<div class="mp-alert-frame">
<div class="mp-left-alert">
<img src="' . plugins_url('../../assets/images/minilogo.png', plugin_dir_path(__FILE__)) . '">
</div>
<div class="mp-right-alert">
<p>' . $message . '</p>
<p>' . $buttonUrl . '</p>
<div class="mp-alert-frame">
<div class="mp-left-alert">
<img src="' . plugins_url('../../assets/images/minilogo.png', plugin_dir_path(__FILE__)) . '">
</div>
<div class="mp-right-alert">
<p>' . $message . '</p>
<p>' . $buttonUrl . '</p>
</div>
</div>
</div>
<button type="button" class="notice-dismiss">
<span class="screen-reader-text">' . __('Discard', 'woocommerce-mercadopago') . '</span>
</button>
</div>';
</div>';

if (class_exists('WC_WooMercadoPago_Module')) {
WC_WooMercadoPago_Module::$notices[] = $notice;
Expand Down
4 changes: 0 additions & 4 deletions includes/admin/notices/WC_WooMercadoPago_ReviewNotice.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ class="mp-rating-link"
. __('Rate the plugin', 'woocommerce-mercadopago') .
'</a>
</div>
<button type="button" class="notice-dismiss">
<span class="screen-reader-text">' . __('Discard', 'woocommerce-mercadopago') . '</span>
</button>
</div>
</div>';

Expand Down
2 changes: 2 additions & 0 deletions includes/admin/notices/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions includes/helpers/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 1 addition & 1 deletion includes/module/WC_WooMercadoPago_Configs.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public function setPaymentGateway($methods = null)
global $wp;
if (!empty($wp) && isset($wp->query_vars['wc-api'])) {
$api_request = wc_clean($wp->query_vars['wc-api']);
if (!empty($api_request) && in_array($api_request, ['WC_WooMercadoPago_BasicGateway', 'WC_WooMercadoPago_CustomGateway', 'WC_WooMercadoPago_TicketGateway'])) {
if (!empty($api_request) && in_array(strtolower($api_request), ['wc_woomercadopago_basicgateway', 'wc_woomercadopago_customgateway', 'wc_woomercadopago_ticketgateway'])) {
$methods[] = $api_request;
}
return $methods;
Expand Down
2 changes: 1 addition & 1 deletion includes/module/config/WC_WooMercadoPago_Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class WC_WooMercadoPago_Constants
const PRODUCT_ID_DESKTOP = 'BT7OF5FEOO6G01NJK3QG';
const PRODUCT_ID_MOBILE = 'BT7OFH09QS3001K5A0H0';
const PLATAFORM_ID = 'bo2hnr2ic4p001kbgpt0';
const VERSION = '4.6.2';
const VERSION = '4.6.3';
const MIN_PHP = 5.6;
const API_MP_BASE_URL = 'https://api.mercadopago.com';
}
2 changes: 2 additions & 0 deletions includes/module/config/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions includes/module/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions includes/module/log/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions includes/module/preference/analytics/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions includes/module/preference/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions includes/module/sdk/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions includes/module/sdk/lib/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions includes/notification/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions includes/payments/hooks/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions includes/payments/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions includes/stock/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
// Silence is golden
Loading

0 comments on commit 1bfc6ce

Please sign in to comment.