Changeset 3267956
- Timestamp:
- 04/07/2025 02:38:06 PM (8 months ago)
- Location:
- wpvulnerability
- Files:
-
- 61 added
- 5 edited
-
tags/4.0.4 (added)
-
tags/4.0.4/.wordpress-org (added)
-
tags/4.0.4/.wordpress-org/banner-1544x500.png (added)
-
tags/4.0.4/.wordpress-org/banner-772x250.png (added)
-
tags/4.0.4/.wordpress-org/icon-128x128.png (added)
-
tags/4.0.4/.wordpress-org/icon-256x256.png (added)
-
tags/4.0.4/.wordpress-org/screenshot-1.png (added)
-
tags/4.0.4/.wordpress-org/screenshot-2.png (added)
-
tags/4.0.4/.wordpress-org/screenshot-3.png (added)
-
tags/4.0.4/assets (added)
-
tags/4.0.4/assets/admin.css (added)
-
tags/4.0.4/assets/banner-1544x500.png (added)
-
tags/4.0.4/assets/banner-772x250.png (added)
-
tags/4.0.4/assets/icon-128x128.png (added)
-
tags/4.0.4/assets/icon-256x256.png (added)
-
tags/4.0.4/assets/icon-apache.svg (added)
-
tags/4.0.4/assets/icon-curl.svg (added)
-
tags/4.0.4/assets/icon-imagemagick.svg (added)
-
tags/4.0.4/assets/icon-mariadb.svg (added)
-
tags/4.0.4/assets/icon-memcached.svg (added)
-
tags/4.0.4/assets/icon-mysql.svg (added)
-
tags/4.0.4/assets/icon-nginx.svg (added)
-
tags/4.0.4/assets/icon-php.svg (added)
-
tags/4.0.4/assets/icon-plugin.svg (added)
-
tags/4.0.4/assets/icon-redis.svg (added)
-
tags/4.0.4/assets/icon-sqlite.svg (added)
-
tags/4.0.4/assets/icon-theme.svg (added)
-
tags/4.0.4/assets/icon-wordpress.svg (added)
-
tags/4.0.4/assets/logo16.png (added)
-
tags/4.0.4/assets/logo512.png (added)
-
tags/4.0.4/assets/logo64.png (added)
-
tags/4.0.4/assets/screenshot-1.png (added)
-
tags/4.0.4/assets/screenshot-2.png (added)
-
tags/4.0.4/assets/screenshot-3.png (added)
-
tags/4.0.4/changelog.txt (added)
-
tags/4.0.4/languages (added)
-
tags/4.0.4/languages/wpvulnerability.pot (added)
-
tags/4.0.4/readme.txt (added)
-
tags/4.0.4/wpvulnerability-admin.php (added)
-
tags/4.0.4/wpvulnerability-adminms.php (added)
-
tags/4.0.4/wpvulnerability-api.php (added)
-
tags/4.0.4/wpvulnerability-cli.php (added)
-
tags/4.0.4/wpvulnerability-core.php (added)
-
tags/4.0.4/wpvulnerability-general.php (added)
-
tags/4.0.4/wpvulnerability-notifications.php (added)
-
tags/4.0.4/wpvulnerability-plugins.php (added)
-
tags/4.0.4/wpvulnerability-process.php (added)
-
tags/4.0.4/wpvulnerability-run.php (added)
-
tags/4.0.4/wpvulnerability-schedule.php (added)
-
tags/4.0.4/wpvulnerability-sitehealth.php (added)
-
tags/4.0.4/wpvulnerability-software.php (added)
-
tags/4.0.4/wpvulnerability-themes.php (added)
-
tags/4.0.4/wpvulnerability.php (added)
-
trunk/.wordpress-org (added)
-
trunk/.wordpress-org/banner-1544x500.png (added)
-
trunk/.wordpress-org/banner-772x250.png (added)
-
trunk/.wordpress-org/icon-128x128.png (added)
-
trunk/.wordpress-org/icon-256x256.png (added)
-
trunk/.wordpress-org/screenshot-1.png (added)
-
trunk/.wordpress-org/screenshot-2.png (added)
-
trunk/.wordpress-org/screenshot-3.png (added)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wpvulnerability-admin.php (modified) (1 diff)
-
trunk/wpvulnerability-adminms.php (modified) (5 diffs)
-
trunk/wpvulnerability.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpvulnerability/trunk/changelog.txt
r3176714 r3267956 1 1 == Changelog == 2 3 = [4.0.4] - 2025-04-07 = 4 5 **Added** 6 7 * Extra sanitizations. 8 9 **Changed** 10 11 * Translation improvements. 12 13 **Fixed** 14 15 * Plugin and translation load. 16 17 **Compatibility** 18 19 * WordPress: 4.1 - 6.8 20 * PHP: 5.6 - 8.4 21 * WP-CLI: 2.3.0 - 2.11.0 22 23 **Tests** 24 25 * PHP Coding Standards: 3.12.1 26 * WordPress Coding Standards: 3.1.0 27 * Plugin Check (PCP): 1.4.0 28 * SonarCloud Code Review 2 29 3 30 = [4.0.3] - 2024-10-28 = -
wpvulnerability/trunk/readme.txt
r3176714 r3267956 3 3 Tags: security, vulnerability, site-health 4 4 Requires at least: 4.1 5 Tested up to: 6. 76 Stable tag: 4.0. 35 Tested up to: 6.8 6 Stable tag: 4.0.4 7 7 Requires PHP: 5.6 8 Version: 4.0. 38 Version: 4.0.4 9 9 License: GPL-2.0-or-later 10 10 License URI: https://spdx.org/licenses/GPL-2.0-or-later.html … … 124 124 == Compatibility == 125 125 126 * WordPress: 4.1 - 6. 7126 * WordPress: 4.1 - 6.8 127 127 * PHP: 5.6 - 8.4 128 128 * WP-CLI: 2.3.0 - 2.11.0 129 129 130 130 == Changelog == 131 132 = [4.0.4] - 2025-04-07 = 133 134 **Added** 135 136 * Extra sanitizations. 137 138 **Changed** 139 140 * Translation improvements. 141 142 **Fixed** 143 144 * Plugin and translation load. 145 146 **Compatibility** 147 148 * WordPress: 4.1 - 6.8 149 * PHP: 5.6 - 8.4 150 * WP-CLI: 2.3.0 - 2.11.0 151 152 **Tests** 153 154 * PHP Coding Standards: 3.12.1 155 * WordPress Coding Standards: 3.1.0 156 * Plugin Check (PCP): 1.4.0 157 * SonarCloud Code Review 131 158 132 159 = [4.0.3] - 2024-10-28 = … … 244 271 == Vulnerabilities == 245 272 246 * No vulnerabilities have been published up to version 4.0. 2.273 * No vulnerabilities have been published up to version 4.0.4. 247 274 248 275 Found a security vulnerability? Please report it to us privately at the [WPVulnerability GitHub repository](https://github.com/javiercasares/wpvulnerability/security/advisories/new). -
wpvulnerability/trunk/wpvulnerability-admin.php
r3161036 r3267956 1145 1145 1146 1146 if ( version_compare( get_bloginfo( 'version' ), '5.2', '>=' ) ) { 1147 echo esc_html( __( 'More information? Visit', 'wpvulnerability' ) ) . ' <a href="' . esc_url( get_admin_url( null, 'site-health.php' ) ) . '">' . esc_html( __( 'Site Health' ) ) . '</a>';1147 echo esc_html( __( 'More information? Visit', 'wpvulnerability' ) ) . ' <a href="' . esc_url( get_admin_url( null, 'site-health.php' ) ) . '">' . esc_html( __( 'Site Health', 'wpvulnerability' ) ) . '</a>'; 1148 1148 } 1149 1149 -
wpvulnerability/trunk/wpvulnerability-adminms.php
r3161036 r3267956 1231 1231 1232 1232 if ( version_compare( get_bloginfo( 'version' ), '5.2', '>=' ) ) { 1233 echo esc_html( __( 'More information? Visit', 'wpvulnerability' ) ) . ' <a href="' . esc_url( get_admin_url( null, 'site-health.php' ) ) . '">' . esc_html( __( 'Site Health' ) ) . '</a>';1233 echo esc_html( __( 'More information? Visit', 'wpvulnerability' ) ) . ' <a href="' . esc_url( get_admin_url( null, 'site-health.php' ) ) . '">' . esc_html( __( 'Site Health', 'wpvulnerability' ) ) . '</a>'; 1234 1234 } 1235 1235 … … 1261 1261 1262 1262 /** 1263 * Sanitiza estrictamente la configuración principal (emails y periodos). 1264 * 1265 * @param array $input Valores de entrada. 1266 * @return array Valores sanitizados. 1267 */ 1268 function wpvulnerability_sanitize_config( $input ) { 1269 $sanitized = array(); 1270 1271 // Emails (lista separada por comas). 1272 if ( isset( $input['emails'] ) ) { 1273 $emails_raw = explode( ',', $input['emails'] ); 1274 $sanitized_emails = array(); 1275 1276 foreach ( $emails_raw as $email ) { 1277 $email = sanitize_email( trim( $email ) ); 1278 if ( is_email( $email ) ) { 1279 $sanitized_emails[] = $email; 1280 } 1281 } 1282 1283 $sanitized['emails'] = implode( ',', $sanitized_emails ); 1284 } 1285 1286 // Period (daily, weekly, monthly). 1287 $allowed_periods = array( 'daily', 'weekly', 'monthly' ); 1288 if ( isset( $input['period'] ) && in_array( $input['period'], $allowed_periods, true ) ) { 1289 $sanitized['period'] = $input['period']; 1290 } else { 1291 $sanitized['period'] = 'weekly'; 1292 } 1293 1294 return $sanitized; 1295 } 1296 1297 /** 1298 * Sanitiza los mensajes generados por el plugin (mensajes simples). 1299 * 1300 * @param array $input Valores de entrada. 1301 * @return array Valores sanitizados. 1302 */ 1303 function wpvulnerability_sanitize_messages( $input ) { 1304 $sanitized = array(); 1305 1306 foreach ( $input as $key => $message ) { 1307 $sanitized[ sanitize_key( $key ) ] = sanitize_text_field( $message ); 1308 } 1309 1310 return $sanitized; 1311 } 1312 1313 /** 1314 * Sanitiza estrictamente las opciones de análisis (booleanos). 1315 * 1316 * @param array $input Valores de entrada. 1317 * @return array Valores sanitizados. 1318 */ 1319 function wpvulnerability_sanitize_analyze( $input ) { 1320 $components = array( 1321 'core', 1322 'plugins', 1323 'themes', 1324 'php', 1325 'apache', 1326 'nginx', 1327 'mariadb', 1328 'mysql', 1329 'imagemagick', 1330 'curl', 1331 'memcached', 1332 'redis', 1333 'sqlite', 1334 ); 1335 1336 $sanitized = array(); 1337 1338 foreach ( $components as $component ) { 1339 $sanitized[ $component ] = isset( $input[ $component ] ) ? (bool) $input[ $component ] : false; 1340 } 1341 1342 return $sanitized; 1343 } 1344 1345 /** 1263 1346 * Initializes the WP-Admin settings page for the WP Vulnerability plugin. 1264 1347 * … … 1272 1355 register_setting( 1273 1356 'admin_wpvulnerability_settings', 1274 'wpvulnerability-config' 1357 'wpvulnerability-config', 1358 array( 1359 'sanitize_callback' => 'wpvulnerability_sanitize_config', 1360 'default' => array(), 1361 'show_in_rest' => false, 1362 'type' => 'array', 1363 ) 1275 1364 ); 1276 1365 … … 1278 1367 register_setting( 1279 1368 'admin_wpvulnerability_settings', 1280 'wpvulnerability-messages' 1369 'wpvulnerability-messages', 1370 array( 1371 'sanitize_callback' => 'wpvulnerability_sanitize_messages', 1372 'default' => array(), 1373 'show_in_rest' => false, 1374 'type' => 'array', 1375 ) 1281 1376 ); 1282 1377 … … 1310 1405 register_setting( 1311 1406 'admin_wpvulnerability_analyze', 1312 'wpvulnerability-analyze' 1407 'wpvulnerability-analyze', 1408 array( 1409 'sanitize_callback' => 'wpvulnerability_sanitize_analyze', 1410 'default' => array(), 1411 'show_in_rest' => false, 1412 'type' => 'array', 1413 ) 1313 1414 ); 1314 1415 -
wpvulnerability/trunk/wpvulnerability.php
r3176714 r3267956 6 6 * Requires at least: 4.1 7 7 * Requires PHP: 5.6 8 * Version: 4.0. 38 * Version: 4.0.4 9 9 * Author: Javier Casares 10 10 * Author URI: https://www.javiercasares.com/ … … 24 24 * Set some constants that I can change in future versions. 25 25 */ 26 define( 'WPVULNERABILITY_PLUGIN_VERSION', '4.0. 3' );26 define( 'WPVULNERABILITY_PLUGIN_VERSION', '4.0.4' ); 27 27 define( 'WPVULNERABILITY_API_HOST', 'https://www.wpvulnerability.net/' ); 28 28 define( 'WPVULNERABILITY_CACHE_HOURS', 12 ); … … 50 50 */ 51 51 load_plugin_textdomain( 'wpvulnerability', false, dirname( WPVULNERABILITY_PLUGIN_BASE ) . '/languages' ); 52 52 53 wpvulnerability_activation(); 53 54 … … 108 109 register_deactivation_hook( WPVULNERABILITY_PLUGIN_FILE, 'wpvulnerability_deactivation' ); 109 110 register_uninstall_hook( WPVULNERABILITY_PLUGIN_FILE, 'wpvulnerability_uninstall' ); 110 add_action( ' plugins_loaded', 'wpvulnerability_plugin_init' );111 add_action( 'init', 'wpvulnerability_plugin_init' ); 111 112 } 112 113
Note: See TracChangeset
for help on using the changeset viewer.