Changeset 3272039
- Timestamp:
- 04/14/2025 06:27:03 AM (4 weeks ago)
- Location:
- disable-search
- Files:
- 4 deleted
- 3 edited
- 7 copied
- tags/2.1.1 (copied) (copied from disable-search/trunk)
- tags/2.1.1/CHANGELOG.md (copied) (copied from disable-search/trunk/CHANGELOG.md) (1 diff)
- tags/2.1.1/README.md (copied) (copied from disable-search/trunk/README.md)
- tags/2.1.1/TODO.md (copied) (copied from disable-search/trunk/TODO.md)
- tags/2.1.1/assets/js/disable-search.js (copied) (copied from disable-search/trunk/assets/js/disable-search.js)
- tags/2.1.1/composer.json (deleted)
- tags/2.1.1/composer.lock (deleted)
- tags/2.1.1/disable-search.php (copied) (copied from disable-search/trunk/disable-search.php) (6 diffs)
- tags/2.1.1/phpunit.xml.dist (deleted)
- tags/2.1.1/readme.txt (copied) (copied from disable-search/trunk/readme.txt) (4 diffs)
- tags/2.1.1/tests (deleted)
- trunk/CHANGELOG.md (modified) (1 diff)
- trunk/disable-search.php (modified) (6 diffs)
- trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
disable-search/tags/2.1.1/CHANGELOG.md
r3133002 r3272039 1 1 # Changelog 2 3 ## 2.1.1 _(2025-04-14)_ 4 * Change: Discontinue unnecessary explicit loading of textdomain 5 * Hardening: Ensure translated error message doesn't contain markup 6 * Change: Note compatibility through WP 6.8+ 7 * Change: Note compatibility through PHP 8.3+ 8 * Change: Update copyright date (2025) 9 * Unit tests: 10 * Change: Use `expectException()` instead of `@expectedException` comment (for PHPUnit 9 support) 2 11 3 12 ## 2.1 _(2024-08-08)_ disable-search/tags/2.1.1/disable-search.php
r3133002 r3272039 2 2 /** 3 3 * Plugin Name: Disable Search 4 * Version: 2.1 4 * Version: 2.1.1 5 5 * Plugin URI: https://coffee2code.com/wp-plugins/disable-search/ 6 6 * Author: Scott Reilly … … 11 11 * Description: Disable the built-in front-end search capabilities of WordPress. 12 12 * 13 * Compatible with WordPress 4.6 through 6. 6+.13 * Compatible with WordPress 4.6 through 6.8+, and PHP through at least 8.3+. 14 14 * 15 15 * =>> Read the accompanying readme.txt file for instructions and documentation. … … 19 19 * @package Disable_Search 20 20 * @author Scott Reilly 21 * @version 2.1 21 * @version 2.1.1 22 22 */ 23 23 24 24 /* 25 Copyright (c) 2008-202 4by Scott Reilly (aka coffee2code)25 Copyright (c) 2008-2025 by Scott Reilly (aka coffee2code) 26 26 27 27 This program is free software; you can redistribute it and/or … … 52 52 */ 53 53 public static function version() { 54 return '2.1 ';54 return '2.1.1'; 55 55 } 56 56 … … 70 70 public function __wakeup() { 71 71 /* translators: %s: Name of plugin class. */ 72 throw new Error( sprintf( __( '%s cannot be unserialized.', 'disable-search' ), __CLASS__) );72 throw new Error( esc_html( sprintf( __( '%s cannot be unserialized.', 'disable-search' ), __CLASS__ ) ) ); 73 73 } 74 74 … … 77 77 */ 78 78 public static function init() { 79 // Load textdomain.80 load_plugin_textdomain( 'disable-search' );81 82 79 // Register hooks. 83 80 add_action( 'widgets_init', array( __CLASS__, 'disable_search_widget' ), 1 ); disable-search/tags/2.1.1/readme.txt
r3133002 r3272039 6 6 License URI: https://www.gnu.org/licenses/gpl-2.0.html 7 7 Requires at least: 4.6 8 Tested up to: 6. 69 Stable tag: 2.1 8 Tested up to: 6.8 9 Stable tag: 2.1.1 10 10 11 11 Disable the built-in front-end search capabilities of WordPress. … … 66 66 Yes. This plugin does not collect, store, or disseminate any information from any users or site visitors. 67 67 68 = Does this plugin include unit tests? =68 = Does this plugin have unit tests? = 69 69 70 70 Yes. The tests are not packaged in the release .zip file or included in plugins.svn.wordpress.org, but can be found in the [plugin's repository](https://.com/coffee2code/disable-search/). … … 72 72 73 73 == Changelog == 74 75 = 2.1.1 (2025-04-14) = 76 * Change: Discontinue unnecessary explicit loading of textdomain 77 * Hardening: Ensure translated error message doesn't contain markup 78 * Change: Note compatibility through WP 6.8+ 79 * Change: Note compatibility through PHP 8.3+ 80 * Change: Update copyright date (2025) 81 * Unit tests: 82 * Change: Use `expectException()` instead of `@expectedException` comment (for PHPUnit 9 support) 74 83 75 84 = 2.1 (2024-08-08) = … … 95 104 * Change: Prevent PHP warnings due to missing core-related generated files 96 105 97 = 2.0 (2021-09-13) =98 Highlights:99 100 * This release finally addresses disabling the search block, notes compatibility through WP 5.8+, and restructures unit test directories.101 102 Details:103 104 * New: Disable the search block105 * New: Add `disable_core_search_block()` to unregister block via PHP106 * New: Add `enqueue_block_editor_assets()` to register JS script to unregister search block via JS107 * New: Add JS script file to unregister search block108 * Change: Update documentation to reflect search block being disabled109 * Change: Remove `get_search_form()` and simply use `__return_empty_string()` as callback to `'get_search_form'` filter110 * Change: Note compatibility through WP 5.8+111 * Change: Tweak installation instruction112 * Unit tests:113 * Change: Restructure unit test directories114 * Change: Move `phpunit/` into `tests/`115 * Change: Move `phpunit/bin` into `tests/`116 * Change: Remove 'test-' prefix from unit test file117 * Change: In bootstrap, store path to plugin file constant118 * Change: In bootstrap, add backcompat for PHPUnit pre-v6.0119 120 106 _Full changelog is available in [CHANGELOG.md](https://.com/coffee2code/disable-search/blob/master/CHANGELOG.md)._ 121 107 122 108 123 109 == Upgrade Notice == 110 111 = 2.1.1 = 112 Trivial update: discontinued explicit loading of textdomain, noted compatibility through WP 6.8+ and PHP 8.3+, and updated copyright date (2025). 124 113 125 114 = 2.1 = disable-search/trunk/CHANGELOG.md
r3133002 r3272039 1 1 # Changelog 2 3 ## 2.1.1 _(2025-04-14)_ 4 * Change: Discontinue unnecessary explicit loading of textdomain 5 * Hardening: Ensure translated error message doesn't contain markup 6 * Change: Note compatibility through WP 6.8+ 7 * Change: Note compatibility through PHP 8.3+ 8 * Change: Update copyright date (2025) 9 * Unit tests: 10 * Change: Use `expectException()` instead of `@expectedException` comment (for PHPUnit 9 support) 2 11 3 12 ## 2.1 _(2024-08-08)_ disable-search/trunk/disable-search.php
r3133002 r3272039 2 2 /** 3 3 * Plugin Name: Disable Search 4 * Version: 2.1 4 * Version: 2.1.1 5 5 * Plugin URI: https://coffee2code.com/wp-plugins/disable-search/ 6 6 * Author: Scott Reilly … … 11 11 * Description: Disable the built-in front-end search capabilities of WordPress. 12 12 * 13 * Compatible with WordPress 4.6 through 6. 6+.13 * Compatible with WordPress 4.6 through 6.8+, and PHP through at least 8.3+. 14 14 * 15 15 * =>> Read the accompanying readme.txt file for instructions and documentation. … … 19 19 * @package Disable_Search 20 20 * @author Scott Reilly 21 * @version 2.1 21 * @version 2.1.1 22 22 */ 23 23 24 24 /* 25 Copyright (c) 2008-202 4by Scott Reilly (aka coffee2code)25 Copyright (c) 2008-2025 by Scott Reilly (aka coffee2code) 26 26 27 27 This program is free software; you can redistribute it and/or … … 52 52 */ 53 53 public static function version() { 54 return '2.1 ';54 return '2.1.1'; 55 55 } 56 56 … … 70 70 public function __wakeup() { 71 71 /* translators: %s: Name of plugin class. */ 72 throw new Error( sprintf( __( '%s cannot be unserialized.', 'disable-search' ), __CLASS__) );72 throw new Error( esc_html( sprintf( __( '%s cannot be unserialized.', 'disable-search' ), __CLASS__ ) ) ); 73 73 } 74 74 … … 77 77 */ 78 78 public static function init() { 79 // Load textdomain.80 load_plugin_textdomain( 'disable-search' );81 82 79 // Register hooks. 83 80 add_action( 'widgets_init', array( __CLASS__, 'disable_search_widget' ), 1 ); disable-search/trunk/readme.txt
r3133002 r3272039 6 6 License URI: https://www.gnu.org/licenses/gpl-2.0.html 7 7 Requires at least: 4.6 8 Tested up to: 6. 69 Stable tag: 2.1 8 Tested up to: 6.8 9 Stable tag: 2.1.1 10 10 11 11 Disable the built-in front-end search capabilities of WordPress. … … 66 66 Yes. This plugin does not collect, store, or disseminate any information from any users or site visitors. 67 67 68 = Does this plugin include unit tests? =68 = Does this plugin have unit tests? = 69 69 70 70 Yes. The tests are not packaged in the release .zip file or included in plugins.svn.wordpress.org, but can be found in the [plugin's repository](https://.com/coffee2code/disable-search/). … … 72 72 73 73 == Changelog == 74 75 = 2.1.1 (2025-04-14) = 76 * Change: Discontinue unnecessary explicit loading of textdomain 77 * Hardening: Ensure translated error message doesn't contain markup 78 * Change: Note compatibility through WP 6.8+ 79 * Change: Note compatibility through PHP 8.3+ 80 * Change: Update copyright date (2025) 81 * Unit tests: 82 * Change: Use `expectException()` instead of `@expectedException` comment (for PHPUnit 9 support) 74 83 75 84 = 2.1 (2024-08-08) = … … 95 104 * Change: Prevent PHP warnings due to missing core-related generated files 96 105 97 = 2.0 (2021-09-13) =98 Highlights:99 100 * This release finally addresses disabling the search block, notes compatibility through WP 5.8+, and restructures unit test directories.101 102 Details:103 104 * New: Disable the search block105 * New: Add `disable_core_search_block()` to unregister block via PHP106 * New: Add `enqueue_block_editor_assets()` to register JS script to unregister search block via JS107 * New: Add JS script file to unregister search block108 * Change: Update documentation to reflect search block being disabled109 * Change: Remove `get_search_form()` and simply use `__return_empty_string()` as callback to `'get_search_form'` filter110 * Change: Note compatibility through WP 5.8+111 * Change: Tweak installation instruction112 * Unit tests:113 * Change: Restructure unit test directories114 * Change: Move `phpunit/` into `tests/`115 * Change: Move `phpunit/bin` into `tests/`116 * Change: Remove 'test-' prefix from unit test file117 * Change: In bootstrap, store path to plugin file constant118 * Change: In bootstrap, add backcompat for PHPUnit pre-v6.0119 120 106 _Full changelog is available in [CHANGELOG.md](https://.com/coffee2code/disable-search/blob/master/CHANGELOG.md)._ 121 107 122 108 123 109 == Upgrade Notice == 110 111 = 2.1.1 = 112 Trivial update: discontinued explicit loading of textdomain, noted compatibility through WP 6.8+ and PHP 8.3+, and updated copyright date (2025). 124 113 125 114 = 2.1 =
Note: See TracChangeset for help on using the changeset viewer.