Skip to content

Commit 7313d66

Browse files
committed
bump versions
1 parent 47dc7ab commit 7313d66

File tree

3 files changed

+22
-18
lines changed

3 files changed

+22
-18
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "secupress-free",
33
"description": "SecuPress Free — WordPress Security. Protect your WordPress with SecuPress, analyze and ensure the safety of your website daily.",
4-
"version": "1.4.12",
4+
"version": "2.1.3",
55
"homepage": "https://secupress.me/",
66
"license": "GPL-2.0",
77
"private": true,

readme.txt

+5-13
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: wordpress security, secure, security plugin, security, malware
44
Requires at least: 4.9
55
Tested up to: 5.8
66
Requires PHP: 5.6
7-
Stable tag: 2.1.2
7+
Stable tag: 2.1.3
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -179,18 +179,10 @@ The answer is no. SecuPress is not compatible with another security plugin. Just
179179

180180
== Changelog ==
181181

182-
= 2.1.2 =
182+
= 2.1.3 =
183183

184-
* 25 October 2021
185-
* Fix: Captcha not working anymore, sorry!
186-
187-
= 2.1.1 =
188-
189-
* 22 October 2021
190-
* Fix#942: Move Login in Subfolder, S2E11
191-
* Fix#941: Warning: explode() expects parameter 2 to be string, array given in secupress-pro/inc/modules/firewall/plugins/bad-referer.php on line 13
192-
* Fix#940: DB scan error on XMLHttpRequest
193-
* Fix#939: secupress_stop_user_enumeration_rest does not return the $response param
194-
* Fix#929: hidden passwords in logs always add variables in global arrays
184+
* 19 November 2021
185+
* Fix#944: PHP Notice: Undefined variable: ip in /functions/ip.php on line 59
186+
* Fix#945: Uncaught Error: Object of class stdClass could not be converted to string in /modules/plugins-themes/tools.php:174
195187

196188
== Upgrade Notice ==

secupress.php

+16-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: More than a plugin, the guarantee of a protected website by experts.
66
* Author: SecuPress
77
* Author URI: https://secupress.me
8-
* Version: 2.1.2
8+
* Version: 2.1.3
99
* Code Name: Python (Mark XX)
1010
* Network: true
1111
* Contributors: SecuPress, juliobox, GregLone
@@ -23,7 +23,7 @@
2323
/** DEFINES ===================================================================================== */
2424
/** --------------------------------------------------------------------------------------------- */
2525

26-
define( 'SECUPRESS_VERSION', '2.1.2' );
26+
define( 'SECUPRESS_VERSION', '2.1.3' );
2727
define( 'SECUPRESS_MAJOR_VERSION', '2.1' );
2828
define( 'SECUPRESS_FILE', __FILE__ );
2929
define( 'SECUPRESS_PATH', realpath( dirname( SECUPRESS_FILE ) ) . DIRECTORY_SEPARATOR );
@@ -271,6 +271,17 @@ function secupress_load_plugins() {
271271
do_action( 'secupress.plugins.loaded' );
272272
}
273273

274+
/**
275+
* Check is the $locale if a FR one
276+
*
277+
* @return (bool) True if $locale is fr_FR (france) or fr_BE (belgium) or fr_CA (canada)
278+
* @author Julio Potier
279+
* @since 2.1.3
280+
* @param (string) $locale The locale to be tested
281+
**/
282+
function secupress_locale_is_FR( $locale ) {
283+
return 'fr_FR' === $locale || 'fr_CA' === $locale || 'fr_BE' === $locale;
284+
}
274285

275286
/**
276287
* Include files that contain our functions.
@@ -385,6 +396,7 @@ function secupress_load_functions() {
385396
/**
386397
* Load our own i18n to prevent too long strings or spelling errors from voluteers at translate.wp.org, sorry guys.
387398
*
399+
* @since 2.1.3 Usage of secupress_locale_is_FR()
388400
* @since 2.0.3 fr_BE & fr_CA = fr_FR
389401
* @since 2.0
390402
* @author Julio Potier
@@ -406,7 +418,7 @@ function secupress_load_own_i18n( $mofile, $domain ) {
406418
$determined_locale = determine_locale();
407419
}
408420
$locale = apply_filters( 'plugin_locale', $determined_locale, $domain );
409-
if ( 'fr_CA' === $locale || 'fr_BE' === $locale ) {
421+
if ( secupress_locale_is_FR( $locale ) ) {
410422
$locale = 'fr_FR';
411423
}
412424
$mofile = WP_PLUGIN_DIR . '/' . dirname( plugin_basename( SECUPRESS_FILE ) ) . '/languages/' . $domain . '-' . $locale . '.mo';
@@ -439,4 +451,4 @@ function secupress_load_plugin_textdomain_translations() {
439451
__( 'SecuPress Free — WordPress Security', 'secupress' );
440452
/** Translators: Description of the plugin/theme */
441453
__( 'Protect your WordPress with SecuPress, analyze and ensure the safety of your website daily.', 'secupress' );
442-
}
454+
}

0 commit comments

Comments
 (0)