Changeset 3448604
- Timestamp:
- 01/28/2026 10:50:04 AM (2 months ago)
- Location:
- zenpress
- Files:
-
- 14 edited
- 1 copied
-
tags/2.2.1 (copied) (copied from zenpress/trunk)
-
tags/2.2.1/inc/core/constants.php (modified) (1 diff)
-
tags/2.2.1/inc/snippets/functions/block-user-enumeration.php (modified) (1 diff)
-
tags/2.2.1/inc/snippets/functions/disable-capital-p-dangit.php (modified) (2 diffs)
-
tags/2.2.1/inc/snippets/functions/disable-rest-api.php (modified) (1 diff)
-
tags/2.2.1/languages/zenpress.pot (modified) (4 diffs)
-
tags/2.2.1/readme.txt (modified) (4 diffs)
-
tags/2.2.1/zenpress.php (modified) (1 diff)
-
trunk/inc/core/constants.php (modified) (1 diff)
-
trunk/inc/snippets/functions/block-user-enumeration.php (modified) (1 diff)
-
trunk/inc/snippets/functions/disable-capital-p-dangit.php (modified) (2 diffs)
-
trunk/inc/snippets/functions/disable-rest-api.php (modified) (1 diff)
-
trunk/languages/zenpress.pot (modified) (4 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/zenpress.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
zenpress/tags/2.2.1/inc/core/constants.php
r3448585 r3448604 10 10 11 11 if (!defined('ZENPRESS_PLUGIN_FILE')) { 12 $ plugin_file = dirname(__DIR__, 2) . '/zenpress.php';13 define('ZENPRESS_PLUGIN_FILE', is_file($ plugin_file) ? $plugin_file : __FILE__);12 $zenpress_plugin_file = dirname(__DIR__, 2) . '/zenpress.php'; 13 define('ZENPRESS_PLUGIN_FILE', is_file($zenpress_plugin_file) ? $zenpress_plugin_file : __FILE__); 14 14 } 15 15 -
zenpress/tags/2.2.1/inc/snippets/functions/block-user-enumeration.php
r3448585 r3448604 7 7 if (!is_admin()) { 8 8 // Block enumeration via query string (?author=1). 9 $ query_string = $_SERVER['QUERY_STRING'] ??'';10 if (preg_match('/author=([0-9]+)/i', sanitize_text_field(wp_unslash($query_string)))) {9 $zenpress_query_string = isset($_SERVER['QUERY_STRING']) ? sanitize_text_field(wp_unslash($_SERVER['QUERY_STRING'])) : ''; 10 if (preg_match('/author=([0-9]+)/i', $zenpress_query_string)) { 11 11 wp_die(esc_html__('Access denied.', 'zenpress'), '', ['response' => 403]); 12 12 } -
zenpress/tags/2.2.1/inc/snippets/functions/disable-capital-p-dangit.php
r3448585 r3448604 5 5 } 6 6 7 $ filters = [7 $zenpress_filters = [ 8 8 'the_content' => 11, 9 9 'the_title' => 11, … … 14 14 ]; 15 15 16 foreach ($ filters as $filter => $priority) {17 remove_filter($ filter, 'capital_P_dangit', $priority);16 foreach ($zenpress_filters as $zenpress_filter => $zenpress_priority) { 17 remove_filter($zenpress_filter, 'capital_P_dangit', $zenpress_priority); 18 18 } -
zenpress/tags/2.2.1/inc/snippets/functions/disable-rest-api.php
r3448585 r3448604 39 39 if (!empty($server_var)) { 40 40 $server_vars = is_array($server_var) ? $server_var : [$server_var]; 41 $request_uri = $_SERVER['REQUEST_URI'] ??'';41 $request_uri = isset($_SERVER['REQUEST_URI']) ? sanitize_text_field(wp_unslash($_SERVER['REQUEST_URI'])) : ''; 42 42 foreach ($server_vars as $var) { 43 43 if ($request_uri === $var) { -
zenpress/tags/2.2.1/languages/zenpress.pot
r3448585 r3448604 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: ZenPress - Cleaner, Lighter, Faster WP 2.2.0\n"5 "Project-Id-Version: ZenPress - Optimize & Secure 2.2.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/zenpress\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-01-28T10: 05:55+00:00\n"12 "POT-Creation-Date: 2026-01-28T10:44:12+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 17 17 #. Plugin Name of the plugin 18 18 #: zenpress.php 19 msgid "ZenPress - Cleaner, Lighter, Faster WP"19 msgid "ZenPress - Optimize & Secure" 20 20 msgstr "" 21 21 … … 575 575 576 576 #: assets/build/index.js:1 577 #: assets/src/js/components/SaveButton.js: 15577 #: assets/src/js/components/SaveButton.js:20 578 578 msgid "Save settings" 579 579 msgstr "" 580 580 581 581 #: assets/build/index.js:1 582 #: assets/src/js/hooks/useSettings.js:4 1582 #: assets/src/js/hooks/useSettings.js:42 583 583 msgid "Failed to load settings." 584 584 msgstr "" 585 585 586 586 #: assets/build/index.js:1 587 #: assets/src/js/hooks/useSettings.js:5 6587 #: assets/src/js/hooks/useSettings.js:59 588 588 msgid "Settings saved." 589 589 msgstr "" 590 590 591 591 #: assets/build/index.js:1 592 #: assets/src/js/hooks/useSettings.js: 58592 #: assets/src/js/hooks/useSettings.js:61 593 593 msgid "Failed to save settings." 594 594 msgstr "" 595 595 596 596 #: assets/build/index.js:1 597 #: assets/src/js/pages/SettingsPage.js: 75597 #: assets/src/js/pages/SettingsPage.js:86 598 598 msgid "Uncategorized" 599 599 msgstr "" 600 600 601 601 #: assets/build/index.js:1 602 #: assets/src/js/pages/SettingsPage.js: 76602 #: assets/src/js/pages/SettingsPage.js:89 603 603 msgid "uncategorized" 604 604 msgstr "" 605 605 606 606 #: assets/build/index.js:1 607 #: assets/src/js/pages/SettingsPage.js: 193607 #: assets/src/js/pages/SettingsPage.js:234 608 608 msgid "Enable all actions" 609 609 msgstr "" 610 610 611 611 #: assets/build/index.js:1 612 #: assets/src/js/pages/SettingsPage.js: 196612 #: assets/src/js/pages/SettingsPage.js:241 613 613 msgid "Disable all actions" 614 614 msgstr "" 615 615 616 616 #: assets/build/index.js:1 617 #: assets/src/js/pages/SettingsPage.js:2 06617 #: assets/src/js/pages/SettingsPage.js:251 618 618 msgid "Pick configuration preset" 619 619 msgstr "" 620 620 621 621 #: assets/build/index.js:1 622 #: assets/src/js/pages/SettingsPage.js:2 08622 #: assets/src/js/pages/SettingsPage.js:253 623 623 msgid "Don't know which features to enable? Quickly configure ZenPress by selecting a preset that matches your site type. Each preset enables optimized features for your specific use case." 624 624 msgstr "" 625 625 626 626 #: assets/build/index.js:1 627 #: assets/src/js/pages/SettingsPage.js:2 14627 #: assets/src/js/pages/SettingsPage.js:259 628 628 msgid "Corporate website" 629 629 msgstr "" 630 630 631 631 #: assets/build/index.js:1 632 #: assets/src/js/pages/SettingsPage.js:2 16632 #: assets/src/js/pages/SettingsPage.js:261 633 633 msgid "Optimized for business sites and portfolios. Focuses on security, performance, and removing unnecessary features like RSS feeds and author archives." 634 634 msgstr "" 635 635 636 636 #: assets/build/index.js:1 637 #: assets/src/js/pages/SettingsPage.js:2 26638 #: assets/src/js/pages/SettingsPage.js:2 37639 #: assets/src/js/pages/SettingsPage.js: 248637 #: assets/src/js/pages/SettingsPage.js:271 638 #: assets/src/js/pages/SettingsPage.js:286 639 #: assets/src/js/pages/SettingsPage.js:301 640 640 msgid "Enable" 641 641 msgstr "" 642 642 643 643 #: assets/build/index.js:1 644 #: assets/src/js/pages/SettingsPage.js:2 29644 #: assets/src/js/pages/SettingsPage.js:274 645 645 msgid "Blog" 646 646 msgstr "" 647 647 648 648 #: assets/build/index.js:1 649 #: assets/src/js/pages/SettingsPage.js:2 31649 #: assets/src/js/pages/SettingsPage.js:276 650 650 msgid "Tailored for content-focused blogs. Includes performance and security optimizations while preserving essential blog features like RSS feeds." 651 651 msgstr "" 652 652 653 653 #: assets/build/index.js:1 654 #: assets/src/js/pages/SettingsPage.js:2 40654 #: assets/src/js/pages/SettingsPage.js:289 655 655 msgid "E-commerce" 656 656 msgstr "" 657 657 658 658 #: assets/build/index.js:1 659 #: assets/src/js/pages/SettingsPage.js:2 42659 #: assets/src/js/pages/SettingsPage.js:291 660 660 msgid "Designed for WooCommerce stores. Includes all performance and security features plus WooCommerce-specific optimizations for faster checkout." 661 661 msgstr "" -
zenpress/tags/2.2.1/readme.txt
r3448585 r3448604 1 === ZenPress - Cleaner, Lighter, Faster WP===1 === ZenPress - Optimize & Secure === 2 2 Contributors: @quentinldd 3 3 Donate link: https://github.com/sponsors/quentin-ld/ … … 5 5 Requires at least: 6.0 6 6 Tested up to: 6.9 7 Stable tag: 2.2. 07 Stable tag: 2.2.1 8 8 Requires PHP: 8.3 9 9 License: GPLv2 or later … … 206 206 == Changelog == 207 207 208 = 2.2.1 = 209 - Security: Fixed $_SERVER['REQUEST_URI'] and $_SERVER['QUERY_STRING'] sanitization issues in disable-rest-api.php and block-user-enumeration.php. 210 - Global: Fixed global variable naming conventions to use zenpress_ prefix. 211 - Global: Change tagline. 212 208 213 = 2.2.0 = 209 214 - Global: Dropped PHP 7.4 support and aligned minimum PHP requirement with the currently recommended WordPress version. … … 333 338 == Upgrade Notice == 334 339 340 = 2.2.1 = 341 - Security and code quality improvements. Recommended update. 342 335 343 = 2.2.0 = 336 344 - Breaking: PHP 8.3 is now required (PHP 7.4 support dropped). Major code modernization with improved type safety and performance. -
zenpress/tags/2.2.1/zenpress.php
r3448585 r3448604 10 10 * @license GPL v2 or later 11 11 * 12 * Plugin Name: ZenPress - Cleaner, Lighter, Faster WP12 * Plugin Name: ZenPress - Optimize & Secure 13 13 * Description: Easily speed up and strengthen your WordPress site by cleaning out unnecessary features and protecting weak points. 14 * Version: 2.2. 014 * Version: 2.2.1 15 15 * Plugin URI: https://wordpress.org/plugins/zenpress/ 16 16 * Author: Quentin Le Duff -
zenpress/trunk/inc/core/constants.php
r3448585 r3448604 10 10 11 11 if (!defined('ZENPRESS_PLUGIN_FILE')) { 12 $ plugin_file = dirname(__DIR__, 2) . '/zenpress.php';13 define('ZENPRESS_PLUGIN_FILE', is_file($ plugin_file) ? $plugin_file : __FILE__);12 $zenpress_plugin_file = dirname(__DIR__, 2) . '/zenpress.php'; 13 define('ZENPRESS_PLUGIN_FILE', is_file($zenpress_plugin_file) ? $zenpress_plugin_file : __FILE__); 14 14 } 15 15 -
zenpress/trunk/inc/snippets/functions/block-user-enumeration.php
r3448585 r3448604 7 7 if (!is_admin()) { 8 8 // Block enumeration via query string (?author=1). 9 $ query_string = $_SERVER['QUERY_STRING'] ??'';10 if (preg_match('/author=([0-9]+)/i', sanitize_text_field(wp_unslash($query_string)))) {9 $zenpress_query_string = isset($_SERVER['QUERY_STRING']) ? sanitize_text_field(wp_unslash($_SERVER['QUERY_STRING'])) : ''; 10 if (preg_match('/author=([0-9]+)/i', $zenpress_query_string)) { 11 11 wp_die(esc_html__('Access denied.', 'zenpress'), '', ['response' => 403]); 12 12 } -
zenpress/trunk/inc/snippets/functions/disable-capital-p-dangit.php
r3448585 r3448604 5 5 } 6 6 7 $ filters = [7 $zenpress_filters = [ 8 8 'the_content' => 11, 9 9 'the_title' => 11, … … 14 14 ]; 15 15 16 foreach ($ filters as $filter => $priority) {17 remove_filter($ filter, 'capital_P_dangit', $priority);16 foreach ($zenpress_filters as $zenpress_filter => $zenpress_priority) { 17 remove_filter($zenpress_filter, 'capital_P_dangit', $zenpress_priority); 18 18 } -
zenpress/trunk/inc/snippets/functions/disable-rest-api.php
r3448585 r3448604 39 39 if (!empty($server_var)) { 40 40 $server_vars = is_array($server_var) ? $server_var : [$server_var]; 41 $request_uri = $_SERVER['REQUEST_URI'] ??'';41 $request_uri = isset($_SERVER['REQUEST_URI']) ? sanitize_text_field(wp_unslash($_SERVER['REQUEST_URI'])) : ''; 42 42 foreach ($server_vars as $var) { 43 43 if ($request_uri === $var) { -
zenpress/trunk/languages/zenpress.pot
r3448585 r3448604 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: ZenPress - Cleaner, Lighter, Faster WP 2.2.0\n"5 "Project-Id-Version: ZenPress - Optimize & Secure 2.2.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/zenpress\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-01-28T10: 05:55+00:00\n"12 "POT-Creation-Date: 2026-01-28T10:44:12+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 17 17 #. Plugin Name of the plugin 18 18 #: zenpress.php 19 msgid "ZenPress - Cleaner, Lighter, Faster WP"19 msgid "ZenPress - Optimize & Secure" 20 20 msgstr "" 21 21 … … 575 575 576 576 #: assets/build/index.js:1 577 #: assets/src/js/components/SaveButton.js: 15577 #: assets/src/js/components/SaveButton.js:20 578 578 msgid "Save settings" 579 579 msgstr "" 580 580 581 581 #: assets/build/index.js:1 582 #: assets/src/js/hooks/useSettings.js:4 1582 #: assets/src/js/hooks/useSettings.js:42 583 583 msgid "Failed to load settings." 584 584 msgstr "" 585 585 586 586 #: assets/build/index.js:1 587 #: assets/src/js/hooks/useSettings.js:5 6587 #: assets/src/js/hooks/useSettings.js:59 588 588 msgid "Settings saved." 589 589 msgstr "" 590 590 591 591 #: assets/build/index.js:1 592 #: assets/src/js/hooks/useSettings.js: 58592 #: assets/src/js/hooks/useSettings.js:61 593 593 msgid "Failed to save settings." 594 594 msgstr "" 595 595 596 596 #: assets/build/index.js:1 597 #: assets/src/js/pages/SettingsPage.js: 75597 #: assets/src/js/pages/SettingsPage.js:86 598 598 msgid "Uncategorized" 599 599 msgstr "" 600 600 601 601 #: assets/build/index.js:1 602 #: assets/src/js/pages/SettingsPage.js: 76602 #: assets/src/js/pages/SettingsPage.js:89 603 603 msgid "uncategorized" 604 604 msgstr "" 605 605 606 606 #: assets/build/index.js:1 607 #: assets/src/js/pages/SettingsPage.js: 193607 #: assets/src/js/pages/SettingsPage.js:234 608 608 msgid "Enable all actions" 609 609 msgstr "" 610 610 611 611 #: assets/build/index.js:1 612 #: assets/src/js/pages/SettingsPage.js: 196612 #: assets/src/js/pages/SettingsPage.js:241 613 613 msgid "Disable all actions" 614 614 msgstr "" 615 615 616 616 #: assets/build/index.js:1 617 #: assets/src/js/pages/SettingsPage.js:2 06617 #: assets/src/js/pages/SettingsPage.js:251 618 618 msgid "Pick configuration preset" 619 619 msgstr "" 620 620 621 621 #: assets/build/index.js:1 622 #: assets/src/js/pages/SettingsPage.js:2 08622 #: assets/src/js/pages/SettingsPage.js:253 623 623 msgid "Don't know which features to enable? Quickly configure ZenPress by selecting a preset that matches your site type. Each preset enables optimized features for your specific use case." 624 624 msgstr "" 625 625 626 626 #: assets/build/index.js:1 627 #: assets/src/js/pages/SettingsPage.js:2 14627 #: assets/src/js/pages/SettingsPage.js:259 628 628 msgid "Corporate website" 629 629 msgstr "" 630 630 631 631 #: assets/build/index.js:1 632 #: assets/src/js/pages/SettingsPage.js:2 16632 #: assets/src/js/pages/SettingsPage.js:261 633 633 msgid "Optimized for business sites and portfolios. Focuses on security, performance, and removing unnecessary features like RSS feeds and author archives." 634 634 msgstr "" 635 635 636 636 #: assets/build/index.js:1 637 #: assets/src/js/pages/SettingsPage.js:2 26638 #: assets/src/js/pages/SettingsPage.js:2 37639 #: assets/src/js/pages/SettingsPage.js: 248637 #: assets/src/js/pages/SettingsPage.js:271 638 #: assets/src/js/pages/SettingsPage.js:286 639 #: assets/src/js/pages/SettingsPage.js:301 640 640 msgid "Enable" 641 641 msgstr "" 642 642 643 643 #: assets/build/index.js:1 644 #: assets/src/js/pages/SettingsPage.js:2 29644 #: assets/src/js/pages/SettingsPage.js:274 645 645 msgid "Blog" 646 646 msgstr "" 647 647 648 648 #: assets/build/index.js:1 649 #: assets/src/js/pages/SettingsPage.js:2 31649 #: assets/src/js/pages/SettingsPage.js:276 650 650 msgid "Tailored for content-focused blogs. Includes performance and security optimizations while preserving essential blog features like RSS feeds." 651 651 msgstr "" 652 652 653 653 #: assets/build/index.js:1 654 #: assets/src/js/pages/SettingsPage.js:2 40654 #: assets/src/js/pages/SettingsPage.js:289 655 655 msgid "E-commerce" 656 656 msgstr "" 657 657 658 658 #: assets/build/index.js:1 659 #: assets/src/js/pages/SettingsPage.js:2 42659 #: assets/src/js/pages/SettingsPage.js:291 660 660 msgid "Designed for WooCommerce stores. Includes all performance and security features plus WooCommerce-specific optimizations for faster checkout." 661 661 msgstr "" -
zenpress/trunk/readme.txt
r3448585 r3448604 1 === ZenPress - Cleaner, Lighter, Faster WP===1 === ZenPress - Optimize & Secure === 2 2 Contributors: @quentinldd 3 3 Donate link: https://github.com/sponsors/quentin-ld/ … … 5 5 Requires at least: 6.0 6 6 Tested up to: 6.9 7 Stable tag: 2.2. 07 Stable tag: 2.2.1 8 8 Requires PHP: 8.3 9 9 License: GPLv2 or later … … 206 206 == Changelog == 207 207 208 = 2.2.1 = 209 - Security: Fixed $_SERVER['REQUEST_URI'] and $_SERVER['QUERY_STRING'] sanitization issues in disable-rest-api.php and block-user-enumeration.php. 210 - Global: Fixed global variable naming conventions to use zenpress_ prefix. 211 - Global: Change tagline. 212 208 213 = 2.2.0 = 209 214 - Global: Dropped PHP 7.4 support and aligned minimum PHP requirement with the currently recommended WordPress version. … … 333 338 == Upgrade Notice == 334 339 340 = 2.2.1 = 341 - Security and code quality improvements. Recommended update. 342 335 343 = 2.2.0 = 336 344 - Breaking: PHP 8.3 is now required (PHP 7.4 support dropped). Major code modernization with improved type safety and performance. -
zenpress/trunk/zenpress.php
r3448585 r3448604 10 10 * @license GPL v2 or later 11 11 * 12 * Plugin Name: ZenPress - Cleaner, Lighter, Faster WP12 * Plugin Name: ZenPress - Optimize & Secure 13 13 * Description: Easily speed up and strengthen your WordPress site by cleaning out unnecessary features and protecting weak points. 14 * Version: 2.2. 014 * Version: 2.2.1 15 15 * Plugin URI: https://wordpress.org/plugins/zenpress/ 16 16 * Author: Quentin Le Duff
Note: See TracChangeset
for help on using the changeset viewer.