Skip to content

Commit

Permalink
Merge pull request #335 from WordPress/publish/1.1.0
Browse files Browse the repository at this point in the history
Prepare the 1.1.0 release
  • Loading branch information
felixarntz authored May 16, 2022
2 parents d39c6aa + ae290fb commit 4b09af4
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 16 deletions.
2 changes: 1 addition & 1 deletion default-enabled-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY. */
return array(
'images/webp-uploads',
'object-cache/persistent-object-cache-health-check',
'site-health/webp-support',
'object-cache/persistent-object-cache-health-check',
);
/* THIS IS THE END OF THE GENERATED FILE */
8 changes: 4 additions & 4 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 Group, which is a collection of standalone performance modules.
* Requires at least: 5.8
* Requires PHP: 5.6
* Version: 1.0.0
* Version: 1.1.0
* Author: WordPress Performance Group
* Author URI: https://make.wordpress.org/core/tag/performance/
* License: GPLv2 or later
Expand All @@ -15,7 +15,7 @@
* @package performance-lab
*/

define( 'PERFLAB_VERSION', '1.0.0' );
define( 'PERFLAB_VERSION', '1.1.0' );
define( 'PERFLAB_MAIN_FILE', __FILE__ );
define( 'PERFLAB_MODULES_SETTING', 'perflab_modules_settings' );
define( 'PERFLAB_MODULES_SCREEN', 'perflab-modules' );
Expand Down Expand Up @@ -142,7 +142,7 @@ function( $module_settings ) {
*
* This attribute is then used in {@see perflab_render_generator()}.
*
* @since n.e.x.t
* @since 1.1.0
*/
function perflab_get_generator_content() {
$active_modules = perflab_get_active_modules();
Expand All @@ -159,7 +159,7 @@ function perflab_get_generator_content() {
*
* See {@see 'wp_head'}.
*
* @since n.e.x.t
* @since 1.1.0
*/
function perflab_render_generator() {
$content = perflab_get_generator_content();
Expand Down
8 changes: 4 additions & 4 deletions module-i18n.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
$generated_i18n_strings = array(
_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( 'Persistent Object Cache Health Check', 'module name', 'performance-lab' ),
_x( 'Adds a persistent object cache check for sites with non-trivial amounts of data in Site Health status.', 'module description', 'performance-lab' ),
_x( 'Audit Autoloaded Options', 'module name', 'performance-lab' ),
_x( 'Adds a check for autoloaded options in Site Health status.', 'module description', 'performance-lab' ),
_x( 'WebP Support', 'module name', 'performance-lab' ),
_x( 'Adds a WebP support check in Site Health status.', 'module description', 'performance-lab' ),
_x( 'Audit Autoloaded Options', 'module name', 'performance-lab' ),
_x( 'Adds a check for autoloaded options in Site Health status.', 'module description', 'performance-lab' ),
_x( 'Audit Enqueued Assets', 'module name', 'performance-lab' ),
_x( 'Adds a CSS and JS resource check in Site Health status.', 'module description', 'performance-lab' ),
_x( 'Persistent Object Cache Health Check', 'module name', 'performance-lab' ),
_x( 'Adds a persistent object cache check for sites with non-trivial amounts of data in Site Health status.', 'module description', 'performance-lab' ),
);
/* THIS IS THE END OF THE GENERATED FILE */
2 changes: 1 addition & 1 deletion modules/images/webp-uploads/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function webp_uploads_generate_additional_image_source( $attachment_id, $image_s
*
* Returning an image data array or WP_Error here effectively short-circuits the default logic to generate the image source.
*
* @since n.e.x.t
* @since 1.1.0
*
* @param array|null|WP_Error $image Image data {'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string} or null or WP_Error.
* @param int $attachment_id The ID of the attachment from where this image would be created.
Expand Down
4 changes: 2 additions & 2 deletions modules/images/webp-uploads/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ function webp_uploads_img_tag_update_mime_type( $image, $context, $attachment_id
*
* Altering the $image tag through this filter effectively short-circuits the default replacement logic using the preferred MIME type.
*
* @since n.e.x.t
* @since 1.1.0
*
* @param string $image An <img> tag where the urls would be updated.
* @param int $attachment_id The ID of the attachment being modified.
Expand Down Expand Up @@ -562,7 +562,7 @@ function webp_uploads_img_tag_update_mime_type( $image, $context, $attachment_id
* Updates the references of the featured image to the a new image format if available, in the same way it
* occurs in the_content of a post.
*
* @since n.e.x.t
* @since 1.1.0
*
* @param string $html The current HTML markup of the featured image.
* @param int $post_id The current post ID where the featured image is requested.
Expand Down
28 changes: 24 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Contributors: wordpressdotorg
Requires at least: 5.8
Tested up to: 5.9
Tested up to: 6.0
Requires PHP: 5.6
Stable tag: 1.0.0
Stable tag: 1.1.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 @@ -18,10 +18,10 @@ The Performance Lab plugin is a collection of modules focused on enhancing perfo
Currently the plugin includes the following performance modules:

* **WebP Uploads:** Creates WebP versions for new JPEG image uploads if supported by the server.
* **Persistent Object Cache Health Check:** Adds a persistent object cache check for sites with non-trivial amounts of data in Site Health status.
* **WebP Support:** Adds a WebP support check in Site Health status.
* **Audit Autoloaded Options:** Adds a check for autoloaded options in Site Health status.
* **Audit Enqueued Assets:** Adds a CSS and JS resource check in Site Health status.
* **WebP Support:** Adds a WebP support check in Site Health status.
* **Persistent Object Cache Health Check:** Adds a persistent object cache check for sites with non-trivial amounts of data in Site Health status.

== Installation ==

Expand Down Expand Up @@ -66,6 +66,26 @@ Contributions welcome! There are several ways to contribute:

== Changelog ==

= 1.1.0 =

**Features**

* Infrastructure: Add Performance Lab generator meta tag to `wp_head` output. ([322](https://github.com/WordPress/performance/pull/322))

**Enhancements**

* Images: Introduce filter `webp_uploads_pre_generate_additional_image_source` to short-circuit generating additional image sources on upload. ([318](https://github.com/WordPress/performance/pull/318))
* Images: Introduce filter `webp_uploads_pre_replace_additional_image_source` to short-circuit replacing additional image sources in frontend content. ([319](https://github.com/WordPress/performance/pull/319))
* Images: Refine logic to select smaller image file in the frontend based on `webp_uploads_prefer_smaller_image_file` filter. ([302](https://github.com/WordPress/performance/pull/302))
* Images: Replace the featured image with WebP version when available. ([316](https://github.com/WordPress/performance/pull/316))
* Site Health: Update Site Health Autoloaded options documentation link. ([313](https://github.com/WordPress/performance/pull/313))
* Infrastructure: Avoid unnecessarily early escape of Site Health check labels. ([332](https://github.com/WordPress/performance/pull/332))

**Bug Fixes**

* Object Cache: Correct label for persistent object cache Site Health check. ([329](https://github.com/WordPress/performance/pull/329))
* Images: Only update the specified target images when an image is edited. ([301](https://github.com/WordPress/performance/pull/301))

= 1.0.0 =

**Features**
Expand Down

0 comments on commit 4b09af4

Please sign in to comment.