From dbf6592bc299c8fda0fb0d18aff892336515301a Mon Sep 17 00:00:00 2001 From: David Perez Date: Tue, 17 May 2022 17:16:28 +0200 Subject: [PATCH] Fix: strings not translated. --- includes/class-health-wpvulnerability.php | 20 ++++++++++---------- readme.txt | 7 +++++-- wpvulnerability.php | 4 ++-- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/includes/class-health-wpvulnerability.php b/includes/class-health-wpvulnerability.php index 1f416d1..75d1d69 100644 --- a/includes/class-health-wpvulnerability.php +++ b/includes/class-health-wpvulnerability.php @@ -30,17 +30,17 @@ public function __construct() { */ public function add_vulnerability_tests( $tests ) { $tests['direct']['wpvulnerability_core'] = array( - 'label' => __( 'WP Vulnerability Core' ), + 'label' => __( 'WP Vulnerability Core', 'wpvulnerability' ), 'test' => array( $this, 'test_vulnerability_core' ), ); $tests['direct']['wpvulnerability_themes'] = array( - 'label' => __( 'WP Vulnerability Themes' ), + 'label' => __( 'WP Vulnerability Themes', 'wpvulnerability' ), 'test' => array( $this, 'test_vulnerability_themes' ), ); $tests['direct']['wpvulnerability_plugins'] = array( - 'label' => __( 'WP Vulnerability Plugins' ), + 'label' => __( 'WP Vulnerability Plugins', 'wpvulnerability' ), 'test' => array( $this, 'test_vulnerability_plugins' ), ); @@ -54,10 +54,10 @@ public function add_vulnerability_tests( $tests ) { */ public function test_vulnerability_core() { $result = array( - 'label' => __( 'There are no vulnerabilities in WordPress Core.' ), + 'label' => __( 'There are no vulnerabilities in WordPress Core.', 'wpvulnerability' ), 'status' => 'good', 'badge' => array( - 'label' => __( 'Security' ), + 'label' => __( 'Security', 'wpvulnerability' ), 'color' => 'red', ), 'description' => sprintf( @@ -94,10 +94,10 @@ public function test_vulnerability_core() { */ public function test_vulnerability_themes() { $result = array( - 'label' => __( 'There are no vulnerabilities in Themes.' ), + 'label' => __( 'There are no vulnerabilities in Themes.', 'wpvulnerability' ), 'status' => 'good', 'badge' => array( - 'label' => __( 'Security' ), + 'label' => __( 'Security', 'wpvulnerability' ), 'color' => 'red', ), 'description' => sprintf( @@ -144,10 +144,10 @@ public function test_vulnerability_themes() { */ public function test_vulnerability_plugins() { $result = array( - 'label' => __( 'There are no vulnerabilities in Plugins.' ), + 'label' => __( 'There are no vulnerabilities in Plugins.', 'wpvulnerability' ), 'status' => 'good', 'badge' => array( - 'label' => __( 'Security' ), + 'label' => __( 'Security', 'wpvulnerability' ), 'color' => 'red', ), 'description' => sprintf( @@ -179,7 +179,7 @@ public function test_vulnerability_plugins() { $result['label'] = __( 'There are vulnerabilities in Plugins.', 'wpvulnerability' ); $result['description'] = sprintf( '

%1$s

%2$s', - __( 'We have found vulnerabilities in Plugins.', 'wpvulnerability' ), + __( 'We have found vulnerabilities in Plugins. You cand find below.', 'wpvulnerability' ), $html_vuln ); $result['actions'] .= sprintf( diff --git a/readme.txt b/readme.txt index 863c143..eed0157 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ Contributors: closetechnology, davidperez, javiercasares Tags: security, vulnerability, patchstack, wpscan Requires at least: 5.2 Tested up to: 6.0 -Stable tag: 1.0 -Version: 1.0 +Stable tag: 1.0.1 +Version: 1.0.1 License: GPLv2 License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -62,6 +62,9 @@ First of all, peace of mind. Investigate what the vulnerability is and, above al == Changelog == += 1.0.1 = +* Fix: strings not translated. + = 1.0 = * Added tabs in Health check. diff --git a/wpvulnerability.php b/wpvulnerability.php index acc9382..9f92648 100644 --- a/wpvulnerability.php +++ b/wpvulnerability.php @@ -5,7 +5,7 @@ * Description: Check the security of the WordPress site with the WordPress Vulnerability Database information. Analyzes vulnerabilities in core, plugins and themes. * Requires at least: 5.2 * Requires PHP: 7.2 - * Version: 1.0 + * Version: 1.0.1 * Author: closetechnology * Author URI: https://close.technology/ * Text Domain: wpvulnerability @@ -26,7 +26,7 @@ defined( 'ABSPATH' ) || die( 'No script kiddies please!' ); define( 'WPVULNERABILITY_PLUGIN_URL', plugins_url( '/', __FILE__ ) ); -define( 'WPVULNERABILITY_PLUGIN_VERSION', '1.0' ); +define( 'WPVULNERABILITY_PLUGIN_VERSION', '1.0.1' ); define( 'WPVULNERABILITY_PLUGIN_FILE', __FILE__ ); define( 'WPVULNERABILITY_PLUGIN_BASE', plugin_basename( __FILE__ ) ); define( 'WPVULNERABILITY_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );