Plugin Directory

Changeset 3272039


Ignore:
Timestamp:
04/14/2025 06:27:03 AM (4 weeks ago)
Author:
coffee2code
Message:

Release v2.1.1:

  • Change: Discontinue unnecessary explicit loading of textdomain
  • Hardening: Ensure translated error message doesn't contain markup
  • Change: Note compatibility through WP 6.8+
  • Change: Note compatibility through PHP 8.3+
  • Change: Update copyright date (2025)
  • Unit tests:
    • Change: Use expectException() instead of @expectedException comment (for PHPUnit 9 support)
Location:
disable-search
Files:
4 deleted
3 edited
7 copied

Legend:

Unmodified
Added
Removed
  • disable-search/tags/2.1.1/CHANGELOG.md

    r3133002r3272039 
    11# 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)
    211
    312## 2.1 _(2024-08-08)_
  • disable-search/tags/2.1.1/disable-search.php

    r3133002r3272039 
    22/**
    33 * Plugin Name: Disable Search
    4  * Version:     2.1
     4 * Version:     2.1.1
    55 * Plugin URI:  https://coffee2code.com/wp-plugins/disable-search/
    66 * Author:      Scott Reilly
     
    1111 * Description: Disable the built-in front-end search capabilities of WordPress.
    1212 *
    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+.
    1414 *
    1515 * =>> Read the accompanying readme.txt file for instructions and documentation.
     
    1919 * @package Disable_Search
    2020 * @author  Scott Reilly
    21  * @version 2.1
     21 * @version 2.1.1
    2222 */
    2323
    2424/*
    25     Copyright (c) 2008-2024 by Scott Reilly (aka coffee2code)
     25    Copyright (c) 2008-2025 by Scott Reilly (aka coffee2code)
    2626
    2727    This program is free software; you can redistribute it and/or
     
    5252     */
    5353    public static function version() {
    54         return '2.1';
     54        return '2.1.1';
    5555    }
    5656
     
    7070    public function __wakeup() {
    7171        /* 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__ ) ) );
    7373    }
    7474
     
    7777     */
    7878    public static function init() {
    79         // Load textdomain.
    80         load_plugin_textdomain( 'disable-search' );
    81 
    8279        // Register hooks.
    8380        add_action( 'widgets_init',                 array( __CLASS__, 'disable_search_widget' ), 1 );
  • disable-search/tags/2.1.1/readme.txt

    r3133002r3272039 
    66License URI: https://www.gnu.org/licenses/gpl-2.0.html
    77Requires at least: 4.6
    8 Tested up to: 6.6
    9 Stable tag: 2.1
     8Tested up to: 6.8
     9Stable tag: 2.1.1
    1010
    1111Disable the built-in front-end search capabilities of WordPress.
     
    6666Yes. This plugin does not collect, store, or disseminate any information from any users or site visitors.
    6767
    68 = Does this plugin include unit tests? =
     68= Does this plugin have unit tests? =
    6969
    7070Yes. 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/).
     
    7272
    7373== 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)
    7483
    7584= 2.1 (2024-08-08) =
     
    95104    * Change: Prevent PHP warnings due to missing core-related generated files
    96105
    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 block
    105     * New: Add `disable_core_search_block()` to unregister block via PHP
    106     * New: Add `enqueue_block_editor_assets()` to register JS script to unregister search block via JS
    107     * New: Add JS script file to unregister search block
    108     * Change: Update documentation to reflect search block being disabled
    109 * Change: Remove `get_search_form()` and simply use `__return_empty_string()` as callback to `'get_search_form'` filter
    110 * Change: Note compatibility through WP 5.8+
    111 * Change: Tweak installation instruction
    112 * Unit tests:
    113     * Change: Restructure unit test directories
    114         * Change: Move `phpunit/` into `tests/`
    115         * Change: Move `phpunit/bin` into `tests/`
    116     * Change: Remove 'test-' prefix from unit test file
    117     * Change: In bootstrap, store path to plugin file constant
    118     * Change: In bootstrap, add backcompat for PHPUnit pre-v6.0
    119 
    120106_Full changelog is available in [CHANGELOG.md](https://.com/coffee2code/disable-search/blob/master/CHANGELOG.md)._
    121107
    122108
    123109== Upgrade Notice ==
     110
     111= 2.1.1 =
     112Trivial update: discontinued explicit loading of textdomain, noted compatibility through WP 6.8+ and PHP 8.3+, and updated copyright date (2025).
    124113
    125114= 2.1 =
  • disable-search/trunk/CHANGELOG.md

    r3133002r3272039 
    11# 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)
    211
    312## 2.1 _(2024-08-08)_
  • disable-search/trunk/disable-search.php

    r3133002r3272039 
    22/**
    33 * Plugin Name: Disable Search
    4  * Version:     2.1
     4 * Version:     2.1.1
    55 * Plugin URI:  https://coffee2code.com/wp-plugins/disable-search/
    66 * Author:      Scott Reilly
     
    1111 * Description: Disable the built-in front-end search capabilities of WordPress.
    1212 *
    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+.
    1414 *
    1515 * =>> Read the accompanying readme.txt file for instructions and documentation.
     
    1919 * @package Disable_Search
    2020 * @author  Scott Reilly
    21  * @version 2.1
     21 * @version 2.1.1
    2222 */
    2323
    2424/*
    25     Copyright (c) 2008-2024 by Scott Reilly (aka coffee2code)
     25    Copyright (c) 2008-2025 by Scott Reilly (aka coffee2code)
    2626
    2727    This program is free software; you can redistribute it and/or
     
    5252     */
    5353    public static function version() {
    54         return '2.1';
     54        return '2.1.1';
    5555    }
    5656
     
    7070    public function __wakeup() {
    7171        /* 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__ ) ) );
    7373    }
    7474
     
    7777     */
    7878    public static function init() {
    79         // Load textdomain.
    80         load_plugin_textdomain( 'disable-search' );
    81 
    8279        // Register hooks.
    8380        add_action( 'widgets_init',                 array( __CLASS__, 'disable_search_widget' ), 1 );
  • disable-search/trunk/readme.txt

    r3133002r3272039 
    66License URI: https://www.gnu.org/licenses/gpl-2.0.html
    77Requires at least: 4.6
    8 Tested up to: 6.6
    9 Stable tag: 2.1
     8Tested up to: 6.8
     9Stable tag: 2.1.1
    1010
    1111Disable the built-in front-end search capabilities of WordPress.
     
    6666Yes. This plugin does not collect, store, or disseminate any information from any users or site visitors.
    6767
    68 = Does this plugin include unit tests? =
     68= Does this plugin have unit tests? =
    6969
    7070Yes. 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/).
     
    7272
    7373== 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)
    7483
    7584= 2.1 (2024-08-08) =
     
    95104    * Change: Prevent PHP warnings due to missing core-related generated files
    96105
    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 block
    105     * New: Add `disable_core_search_block()` to unregister block via PHP
    106     * New: Add `enqueue_block_editor_assets()` to register JS script to unregister search block via JS
    107     * New: Add JS script file to unregister search block
    108     * Change: Update documentation to reflect search block being disabled
    109 * Change: Remove `get_search_form()` and simply use `__return_empty_string()` as callback to `'get_search_form'` filter
    110 * Change: Note compatibility through WP 5.8+
    111 * Change: Tweak installation instruction
    112 * Unit tests:
    113     * Change: Restructure unit test directories
    114         * Change: Move `phpunit/` into `tests/`
    115         * Change: Move `phpunit/bin` into `tests/`
    116     * Change: Remove 'test-' prefix from unit test file
    117     * Change: In bootstrap, store path to plugin file constant
    118     * Change: In bootstrap, add backcompat for PHPUnit pre-v6.0
    119 
    120106_Full changelog is available in [CHANGELOG.md](https://.com/coffee2code/disable-search/blob/master/CHANGELOG.md)._
    121107
    122108
    123109== Upgrade Notice ==
     110
     111= 2.1.1 =
     112Trivial update: discontinued explicit loading of textdomain, noted compatibility through WP 6.8+ and PHP 8.3+, and updated copyright date (2025).
    124113
    125114= 2.1 =
Note: See TracChangeset for help on using the changeset viewer.