Skip to content

Commit

Permalink
bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioPotier committed Nov 18, 2021
1 parent 47dc7ab commit 7313d66
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "secupress-free",
"description": "SecuPress Free — WordPress Security. Protect your WordPress with SecuPress, analyze and ensure the safety of your website daily.",
"version": "1.4.12",
"version": "2.1.3",
"homepage": "https://secupress.me/",
"license": "GPL-2.0",
"private": true,
Expand Down
18 changes: 5 additions & 13 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: wordpress security, secure, security plugin, security, malware
Requires at least: 4.9
Tested up to: 5.8
Requires PHP: 5.6
Stable tag: 2.1.2
Stable tag: 2.1.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

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

== Changelog ==

= 2.1.2 =
= 2.1.3 =

* 25 October 2021
* Fix: Captcha not working anymore, sorry!

= 2.1.1 =

* 22 October 2021
* Fix#942: Move Login in Subfolder, S2E11
* 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
* Fix#940: DB scan error on XMLHttpRequest
* Fix#939: secupress_stop_user_enumeration_rest does not return the $response param
* Fix#929: hidden passwords in logs always add variables in global arrays
* 19 November 2021
* Fix#944: PHP Notice: Undefined variable: ip in /functions/ip.php on line 59
* Fix#945: Uncaught Error: Object of class stdClass could not be converted to string in /modules/plugins-themes/tools.php:174

== Upgrade Notice ==
20 changes: 16 additions & 4 deletions secupress.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: More than a plugin, the guarantee of a protected website by experts.
* Author: SecuPress
* Author URI: https://secupress.me
* Version: 2.1.2
* Version: 2.1.3
* Code Name: Python (Mark XX)
* Network: true
* Contributors: SecuPress, juliobox, GregLone
Expand All @@ -23,7 +23,7 @@
/** DEFINES ===================================================================================== */
/** --------------------------------------------------------------------------------------------- */

define( 'SECUPRESS_VERSION', '2.1.2' );
define( 'SECUPRESS_VERSION', '2.1.3' );
define( 'SECUPRESS_MAJOR_VERSION', '2.1' );
define( 'SECUPRESS_FILE', __FILE__ );
define( 'SECUPRESS_PATH', realpath( dirname( SECUPRESS_FILE ) ) . DIRECTORY_SEPARATOR );
Expand Down Expand Up @@ -271,6 +271,17 @@ function secupress_load_plugins() {
do_action( 'secupress.plugins.loaded' );
}

/**
* Check is the $locale if a FR one
*
* @return (bool) True if $locale is fr_FR (france) or fr_BE (belgium) or fr_CA (canada)
* @author Julio Potier
* @since 2.1.3
* @param (string) $locale The locale to be tested
**/
function secupress_locale_is_FR( $locale ) {
return 'fr_FR' === $locale || 'fr_CA' === $locale || 'fr_BE' === $locale;
}

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

0 comments on commit 7313d66

Please sign in to comment.