Skip to content

Commit

Permalink
Merge pull request #1225 from WordPress/publish/3.1.0
Browse files Browse the repository at this point in the history
Publish 3.1.0 release

Co-authored-by: westonruter <[email protected]>
Co-authored-by: mukeshpanchal27 <[email protected]>
Co-authored-by: joemcgill <[email protected]>
Co-authored-by: sstopfer <[email protected]>
  • Loading branch information
5 people authored May 20, 2024
2 parents a4b2672 + b7e4a6d commit be0727f
Show file tree
Hide file tree
Showing 16 changed files with 71 additions and 15 deletions.
4 changes: 2 additions & 2 deletions includes/admin/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ static function ( $name ) {
/**
* Callback function that print plugin progress indicator script.
*
* @since n.e.x.t
* @since 3.1.0
*/
function perflab_print_plugin_progress_indicator_script(): void {
$js_function = <<<JS
Expand Down Expand Up @@ -434,7 +434,7 @@ function addPluginProgressIndicator( message ) {
/**
* Gets the URL to the plugin settings screen if one exists.
*
* @since n.e.x.t
* @since 3.1.0
*
* @param string $plugin_slug Plugin slug passed to generate the settings link.
* @return string|null Either the plugin settings URL or null if not available.
Expand Down
4 changes: 2 additions & 2 deletions includes/admin/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function perflab_render_plugins_ui(): void {
/**
* Checks if a given plugin is available.
*
* @since n.e.x.t
* @since 3.1.0
* @see perflab_install_and_activate_plugin()
*
* @param array{name: string, slug: string, short_description: string, requires_php: string|false, requires: string|false, requires_plugins: string[], version: string} $plugin_data Plugin data from the WordPress.org API.
Expand Down Expand Up @@ -226,7 +226,7 @@ function perflab_get_plugin_availability( array $plugin_data, array &$processed_
*
* Dependencies are recursively installed and activated as well.
*
* @since n.e.x.t
* @since 3.1.0
* @see perflab_get_plugin_availability()
*
* @param string $plugin_slug Plugin slug.
Expand Down
4 changes: 2 additions & 2 deletions includes/server-timing/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package performance-lab
*
* @since n.e.x.t
* @since 3.1.0
*/

if ( ! defined( 'ABSPATH' ) ) {
Expand All @@ -14,7 +14,7 @@
/**
* Adds server timing to REST API response.
*
* @since n.e.x.t
* @since 3.1.0
*
* @param WP_REST_Response|WP_Error $response Result to send to the client. Usually a `WP_REST_Response`.
* @return WP_REST_Response|WP_Error Filtered response.
Expand Down
4 changes: 2 additions & 2 deletions includes/server-timing/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function perflab_server_timing(): Perflab_Server_Timing {
/**
* Initializes the Server-Timing API.
*
* @since n.e.x.t
* @since 3.1.0
*/
function perflab_server_timing_init(): void {
perflab_server_timing();
Expand Down Expand Up @@ -148,7 +148,7 @@ function perflab_wrap_server_timing( callable $callback, string $metric_slug, st
/**
* Gets default value for server timing setting.
*
* @since n.e.x.t
* @since 3.1.0
*
* @return array{benchmarking_actions: string[], benchmarking_filters: string[], output_buffering: bool} Default value.
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/site-health/avif-support/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Helper functions used for AVIF Support.
*
* @package performance-lab
* @since n.e.x.t
* @since 3.1.0
*/

if ( ! defined( 'ABSPATH' ) ) {
Expand All @@ -13,7 +13,7 @@
/**
* Callback for avif_enabled test.
*
* @since n.e.x.t
* @since 3.1.0
*
* @return array{label: string, status: string, badge: array{label: string, color: string}, description: string, actions: string, test: string} Result.
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/site-health/avif-support/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Hook callbacks used for AVIF Support.
*
* @package performance-lab
* @since n.e.x.t
* @since 3.1.0
*/

if ( ! defined( 'ABSPATH' ) ) {
Expand All @@ -13,7 +13,7 @@
/**
* Adds tests to site health.
*
* @since n.e.x.t
* @since 3.1.0
*
* @param array{direct: array<string, array{label: string, test: string}>} $tests Site Health Tests.
* @return array{direct: array<string, array{label: string, test: string}>} Amended tests.
Expand Down
1 change: 1 addition & 0 deletions plugins/auto-sizes/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Contributions are always welcome! Learn more about how to get involved in the [C
= 1.0.2 =

* Improve overall code quality with stricter static analysis checks. ([775](https://github.com/WordPress/performance/issues/775))
* Bump minimum PHP requirement to 7.2. ([1130](https://github.com/WordPress/performance/pull/1130))

= 1.0.1 =

Expand Down
8 changes: 8 additions & 0 deletions plugins/dominant-color-images/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,15 @@ Contributions are always welcome! Learn more about how to get involved in the [C

= 1.1.1 =

**Enhancements**

* Avoid needless array allocation in rgb to hex conversion. ([1104](https://github.com/WordPress/performance/pull/1104))
* Improve overall code quality with stricter static analysis checks. ([775](https://github.com/WordPress/performance/issues/775))
* Bump minimum PHP requirement to 7.2. ([1130](https://github.com/WordPress/performance/pull/1130))

**Bug Fixes**

* Fix Imagick detecting partial transparency. ([1215](https://github.com/WordPress/performance/pull/1215))

= 1.1.0 =

Expand Down
7 changes: 7 additions & 0 deletions plugins/embed-optimizer/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu

= 0.1.2 =

**Enhancements**

* Improve overall code quality with stricter static analysis checks. ([775](https://github.com/WordPress/performance/issues/775))
* Bump minimum PHP requirement to 7.2. ([1130](https://github.com/WordPress/performance/pull/1130))

**Bug Fixes**

* Hide post embed iframes with visibility:hidden instead of clipping. ([1192](https://github.com/WordPress/performance/pull/1192))

= 0.1.1 =

Expand Down
2 changes: 1 addition & 1 deletion plugins/optimization-detective/optimization.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function od_construct_preload_links( array $lcp_elements_by_minimum_viewport_wid
/**
* Determines whether the response has an HTML Content-Type.
*
* @since n.e.x.t
* @since 0.2.0
* @private
*
* @return bool Whether Content-Type is HTML.
Expand Down
12 changes: 12 additions & 0 deletions plugins/optimization-detective/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,19 @@ The [plugin source code](https://github.com/WordPress/performance/tree/trunk/plu

= 0.2.0 =

**Enhancements**

* Add optimization_detective_disabled query var to disable behavior. ([1193](https://github.com/WordPress/performance/pull/1193))
* Facilitate embedding Optimization Detective in other plugins/themes. ([1185](https://github.com/WordPress/performance/pull/1185))
* Use PHP 7.2 features in Optimization Detective. ([1162](https://github.com/WordPress/performance/pull/1162))
* Improve overall code quality with stricter static analysis checks. ([775](https://github.com/WordPress/performance/issues/775))
* Bump minimum PHP requirement to 7.2. ([1130](https://github.com/WordPress/performance/pull/1130))

**Bug Fixes**

* Avoid _doing_it_wrong() for Server-Timing in Optimization Detective when output buffering is not enabled. ([1194](https://github.com/WordPress/performance/pull/1194))
* Ensure only HTML responses are optimized. ([1189](https://github.com/WordPress/performance/pull/1189))
* Fix XPath indices to be 1-based instead of 0-based. ([1191](https://github.com/WordPress/performance/pull/1191))

= 0.1.1 =

Expand Down
5 changes: 5 additions & 0 deletions plugins/speculation-rules/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,12 @@ Contributions are always welcome! Learn more about how to get involved in the [C

= 1.3.0 =

**Enhancements**

* Prevent speculatively loading links to the uploads, content, plugins, template, or stylesheet directories. ([1167](https://github.com/WordPress/performance/pull/1167))
* Facilitate embedding Speculative Loading in other plugins/themes. ([1159](https://github.com/WordPress/performance/pull/1159))
* Improve overall code quality with stricter static analysis checks. ([775](https://github.com/WordPress/performance/issues/775))
* Bump minimum PHP requirement to 7.2. ([1130](https://github.com/WordPress/performance/pull/1130))

= 1.2.2 =

Expand Down
2 changes: 1 addition & 1 deletion plugins/webp-uploads/deprecated.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package webp-uploads
*
* @since n.e.x.t
* @since 1.1.1
*/

if ( ! defined( 'ABSPATH' ) ) {
Expand Down
8 changes: 8 additions & 0 deletions plugins/webp-uploads/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,15 @@ By default, the Modern Image Formats plugin will only generate WebP versions of

= 1.1.1 =

**Enhancements**

* Prepend Settings link in webp-uploads. ([1146](https://github.com/WordPress/performance/pull/1146))
* Improve overall code quality with stricter static analysis checks. ([775](https://github.com/WordPress/performance/issues/775))
* Bump minimum PHP requirement to 7.2. ([1130](https://github.com/WordPress/performance/pull/1130))

**Documentation**

* Updated inline documentation. ([1160](https://github.com/WordPress/performance/pull/1160))

= 1.1.0 =

Expand Down
2 changes: 1 addition & 1 deletion plugins/webp-uploads/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function webp_uploads_media_setting_style(): void {
* Adds a settings link to the plugin's action links.
*
* @since 1.1.0
* @since n.e.x.t Renamed from webp_uploads_settings_link() to webp_uploads_add_settings_action_link()
* @since 1.1.1 Renamed from webp_uploads_settings_link() to webp_uploads_add_settings_action_link()
*
* @param string[]|mixed $links An array of plugin action links.
* @return string[]|mixed The modified list of actions.
Expand Down
15 changes: 15 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,23 @@ Contributions are always welcome! Learn more about how to get involved in the [C

= 3.1.0 =

**Enhancements**

* Add progress indicator when activating a feature. ([1190](https://github.com/WordPress/performance/pull/1190))
* Display plugin settings links in the features screen and fix responsive layout for mobile. ([1208](https://github.com/WordPress/performance/pull/1208))
* Add plugin dependency support for activating performance features. ([1184](https://github.com/WordPress/performance/pull/1184))
* Add support for AVIF image format in site health. ([1177](https://github.com/WordPress/performance/pull/1177))
* Add server timing to REST API response. ([1206](https://github.com/WordPress/performance/pull/1206))
* Bump minimum PHP requirement to 7.2. ([1130](https://github.com/WordPress/performance/pull/1130))
* Refine logic in perflab_install_activate_plugin_callback() to rely only on validated slug. ([1170](https://github.com/WordPress/performance/pull/1170))
* Improve overall code quality with stricter static analysis checks. ([775](https://github.com/WordPress/performance/issues/775))

**Bug Fixes**

* Avoid passing incomplete data to perflab_render_plugin_card() and show error when plugin directory API query fails. ([1175](https://github.com/WordPress/performance/pull/1175))
* Do not show admin pointer on the Performance screen and dismiss the pointer when visited. ([1147](https://github.com/WordPress/performance/pull/1147))
* Fix `WordPress.DB.DirectDatabaseQuery.DirectQuery` warning for Autoloaded Options Health Check. ([1179](https://github.com/WordPress/performance/pull/1179))

= 3.0.0 =

**Enhancements**
Expand Down

0 comments on commit be0727f

Please sign in to comment.