Skip to content

Commit

Permalink
Merge pull request #712 from WordPress/publish/2.2.0
Browse files Browse the repository at this point in the history
Publish/2.2.0
  • Loading branch information
felixarntz authored Apr 17, 2023
2 parents f17c96e + a611689 commit 4692824
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 13 deletions.
1 change: 1 addition & 0 deletions default-enabled-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */
return array(
'images/dominant-color-images',
'images/fetchpriority',
'images/webp-support',
'images/webp-uploads',
);
Expand Down
10 changes: 5 additions & 5 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.1.0
* Version: 2.2.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.1.0' );
define( 'PERFLAB_VERSION', '2.2.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 Expand Up @@ -170,7 +170,7 @@ function( $module_settings ) {
* Gets the active and valid performance modules.
*
* @since 1.3.0
* @since n.e.x.t Adds an additional check for standalone plugins.
* @since 2.2.0 Adds an additional check for standalone plugins.
*
* @param string $module Slug of the module.
* @return bool True if the module is active and valid, otherwise false.
Expand Down Expand Up @@ -258,7 +258,7 @@ function perflab_can_load_module( $module ) {
/**
* Checks whether the given module has already been loaded by a separate plugin.
*
* @since n.e.x.t
* @since 2.2.0
*
* @param string $module Slug of the module.
* @return bool Whether the module has already been loaded by a separate plugin.
Expand All @@ -278,7 +278,7 @@ function perflab_is_standalone_plugin_loaded( $module ) {
/**
* Gets the standalone plugin constants used for each module / plugin.
*
* @since n.e.x.t
* @since 2.2.0
*
* @return array Map of module path to version constant used.
*/
Expand Down
8 changes: 4 additions & 4 deletions module-i18n.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php
/* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */
$generated_i18n_strings = array(
_x( 'Dominant Color', 'module name', 'performance-lab' ),
_x( 'Adds support to store dominant color for an image and create a placeholder background with that color.', 'module description', 'performance-lab' ),
_x( 'Dominant Color Images', 'module name', 'performance-lab' ),
_x( 'Adds support to store the dominant color of newly uploaded images and create a placeholder background of that color.', 'module description', 'performance-lab' ),
_x( 'Fetchpriority', 'module name', 'performance-lab' ),
_x( 'Adds a fetchpriority hint for the primary content image on the page to load faster.', 'module description', 'performance-lab' ),
_x( 'WebP Support Health Check', 'module name', 'performance-lab' ),
_x( 'Adds a WebP support check in Site Health status.', 'module description', 'performance-lab' ),
_x( 'WebP Uploads', 'module name', 'performance-lab' ),
_x( 'Creates WebP versions for new JPEG image uploads if supported by the server.', 'module description', 'performance-lab' ),
_x( 'Fetchpriority', 'module name', 'performance-lab' ),
_x( 'Adds a fetchpriority hint for the primary content image on the page to load faster.', 'module description', 'performance-lab' ),
_x( 'Enqueued Assets Health Check', 'module name', 'performance-lab' ),
_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' ),
Expand Down
2 changes: 1 addition & 1 deletion modules/images/webp-uploads/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ function webp_uploads_modify_webp_quality( $quality, $mime_type ) {
*
* See {@see 'wp_head'}.
*
* @since n.e.x.t
* @since 2.2.0
*/
function webp_uploads_render_generator() {
if (
Expand Down
23 changes: 20 additions & 3 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.2
Requires PHP: 5.6
Stable tag: 2.1.0
Stable tag: 2.2.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 @@ -17,10 +17,10 @@ The Performance Lab plugin is a collection of modules focused on enhancing perfo

Currently the plugin includes the following performance modules:

* **Dominant Color:** Adds support to store dominant color for an image and create a placeholder background with that color.
* **Dominant Color Images:** Adds support to store the dominant color of newly uploaded images and create a placeholder background of that color.
* **Fetchpriority:** Adds a fetchpriority hint for the primary content image on the page to load faster.
* **WebP Support Health Check:** Adds a WebP support check in Site Health status.
* **WebP Uploads:** Creates WebP versions for new JPEG image uploads if supported by the server.
* **Fetchpriority:** Adds a fetchpriority hint for the primary content image on the page to load faster.
* **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.
Expand Down Expand Up @@ -81,6 +81,23 @@ By default, the WebP Uploads module will only generate WebP versions of the imag

== Changelog ==

= 2.2.0 =

**Enhancements**

* Images: Remove "experimental" flag from Fetchpriority module. ([702](https://github.com/WordPress/performance/pull/702))
* Infrastructure: Implement infrastructure for launching standalone plugins from modules, including WebP Uploads. ([699](https://github.com/WordPress/performance/pull/699))
* Infrastructure: Include `WordPress-Extra` rules in PHPCS configuration and fix resulting problems. ([695](https://github.com/WordPress/performance/pull/695))

**Bug Fixes**

* Images: Sanitize target param before using it. ([690](https://github.com/WordPress/performance/pull/690))

**Documentation**

* Images: Change module slug/directory from `dominant-color` to `dominant-color-images`. ([708](https://github.com/WordPress/performance/pull/708))
* Images: Rename `Dominant Color` module to `Dominant Color images`. ([705](https://github.com/WordPress/performance/pull/705))

= 2.1.0 =

**Enhancements**
Expand Down

0 comments on commit 4692824

Please sign in to comment.