Skip to content

Commit

Permalink
Fix: strings not translated.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidperezgar committed May 17, 2022
1 parent 6e1159a commit dbf6592
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
20 changes: 10 additions & 10 deletions includes/class-health-wpvulnerability.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
);

Expand All @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -179,7 +179,7 @@ public function test_vulnerability_plugins() {
$result['label'] = __( 'There are vulnerabilities in Plugins.', 'wpvulnerability' );
$result['description'] = sprintf(
'<p>%1$s</p> %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(
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions wpvulnerability.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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__ ) );
Expand Down

0 comments on commit dbf6592

Please sign in to comment.