Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Release/2.5.0 back to trunk #781

Merged
merged 7 commits into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions bin/plugin/commands/since.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ exports.handler = async ( opt ) => {
ignore: [ __filename, '**/node_modules', '**/vendor' ],
} );

const regexp = new RegExp( '@since n.e.x.t', 'g' );
const regexp = new RegExp( '@since(\\s+)n.e.x.t', 'g' );

files.forEach( ( file ) => {
const content = fs.readFileSync( file, 'utf-8' );
if ( regexp.test( content ) ) {
fs.writeFileSync(
file,
content.replace( regexp, `@since ${ opt.release }` )
content.replace( regexp, `@since$1${ opt.release }` )
);
}
} );
Expand Down
4 changes: 2 additions & 2 deletions load.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Performance plugin from the WordPress Performance Team, which is a collection of standalone performance modules.
* Requires at least: 6.1
* Requires PHP: 5.6
* Version: 2.4.0
* Version: 2.5.0
* Author: WordPress Performance Team
* Author URI: https://make.wordpress.org/performance/
* License: GPLv2 or later
Expand All @@ -15,7 +15,7 @@
* @package performance-lab
*/

define( 'PERFLAB_VERSION', '2.4.0' );
define( 'PERFLAB_VERSION', '2.5.0' );
define( 'PERFLAB_MAIN_FILE', __FILE__ );
define( 'PERFLAB_PLUGIN_DIR_PATH', plugin_dir_path( PERFLAB_MAIN_FILE ) );
define( 'PERFLAB_MODULES_SETTING', 'perflab_modules_settings' );
Expand Down
2 changes: 0 additions & 2 deletions module-i18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@
_x( 'Adds a CSS and JS resource check in Site Health status.', 'module description', 'performance-lab' ),
_x( 'Autoloaded Options Health Check', 'module name', 'performance-lab' ),
_x( 'Adds a check for autoloaded options in Site Health status.', 'module description', 'performance-lab' ),
_x( 'SQLite Integration', 'module name', 'performance-lab' ),
_x( 'Use an SQLite database instead of MySQL.', 'module description', 'performance-lab' ),
);
/* THIS IS THE END OF THE GENERATED FILE */
2 changes: 1 addition & 1 deletion modules/images/fetchpriority/can-load.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Can load function to determine if the Fetchpriority feature is already available in WordPress core.
*
* @since n.e.x.t
* @since 2.5.0
* @package performance-lab
*/

Expand Down
11 changes: 9 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: wordpressdotorg
Requires at least: 6.1
Tested up to: 6.3
Requires PHP: 5.6
Stable tag: 2.4.0
Stable tag: 2.5.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: performance, images, javascript, site health, measurement, object caching
Expand All @@ -23,7 +23,6 @@ Currently the plugin includes the following performance modules:
* **WebP Uploads:** Creates WebP versions for new JPEG image uploads if supported by the server.
* **Enqueued Assets Health Check:** Adds a CSS and JS resource check in Site Health status.
* **Autoloaded Options Health Check:** Adds a check for autoloaded options in Site Health status.
* **SQLite Integration:** Use an SQLite database instead of MySQL.

== Installation ==

Expand Down Expand Up @@ -81,6 +80,14 @@ By default, the WebP Uploads module will only generate WebP versions of the imag

== Changelog ==

= 2.5.0 =

**Enhancements**

* Images: Check for fetchpriority feature being available in WordPress core before loading the module. ([769](https://github.com/WordPress/performance/pull/769))
* Database Optimization: Remove SQLite module. ([764](https://github.com/WordPress/performance/pull/764))
* Infrastructure: Bump tested up to version to 6.3. ([772](https://github.com/WordPress/performance/pull/772))

= 2.4.0 =

**Enhancements**
Expand Down
Loading