v5.1.0
This commit is contained in:
parent
9aef0b4533
commit
31f7e97d39
1 changed files with 719 additions and 655 deletions
|
|
@ -3036,7 +3036,7 @@ function wpvulnerability_display_security_status() {
|
|||
<?php if ( $log_retention > 0 ) : ?>
|
||||
<span class="wpvulnerability-status-badge success">
|
||||
<?php
|
||||
/* translators: %d: number of days */
|
||||
/* translators: %d: Number of days. */
|
||||
echo esc_html( sprintf( __( 'Enabled (%d days)', 'wpvulnerability' ), $log_retention ) );
|
||||
?>
|
||||
</span>
|
||||
|
|
@ -3110,6 +3110,12 @@ function wpvulnerability_display_detection_methods() {
|
|||
foreach ( array_keys( $components ) as $component ) {
|
||||
$detection = null;
|
||||
|
||||
// Do not run detection for components hidden via the analysis settings or
|
||||
// a WPVULNERABILITY_HIDE_* constant: they must not trigger shell_exec.
|
||||
if ( ! wpvulnerability_analyze_filter( $component ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
switch ( $component ) {
|
||||
case 'imagemagick':
|
||||
$detection = wpvulnerability_detect_imagemagick();
|
||||
|
|
@ -3638,7 +3644,7 @@ function wpvulnerability_render_debug_section_config() {
|
|||
<td>
|
||||
<?php
|
||||
$retention_days = isset( $config['log_retention_days'] ) && is_scalar( $config['log_retention_days'] ) ? absint( (int) $config['log_retention_days'] ) : 14;
|
||||
/* translators: %d: number of days */
|
||||
/* translators: %d: Number of days. */
|
||||
echo esc_html( sprintf( _n( '%d day', '%d days', $retention_days, 'wpvulnerability' ), $retention_days ) );
|
||||
?>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Reference in a new issue