Skip to content

Commit

Permalink
Merge pull request #941 from WordPress/publish/2.8.0
Browse files Browse the repository at this point in the history
Prepare 2.8.0 release
  • Loading branch information
felixarntz authored Jan 16, 2024
2 parents d0ee705 + c68ca52 commit 135e93f
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 20 deletions.
14 changes: 7 additions & 7 deletions admin/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ function perflab_dismiss_wp_pointer_wrapper() {
/**
* Callback function to handle admin scripts.
*
* @since n.e.x.t
* @since 2.8.0
*/
function perflab_enqueue_modules_page_scripts() {
wp_enqueue_script( 'updates' );
Expand Down Expand Up @@ -617,7 +617,7 @@ function perflab_enqueue_modules_page_scripts() {
/**
* Callback function hooked to admin_action_perflab_activate_plugin to handle plugin activation.
*
* @since n.e.x.t
* @since 2.8.0
*/
function perflab_activate_plugin() {
// Do not proceed if plugin query arg is not present.
Expand Down Expand Up @@ -666,7 +666,7 @@ function perflab_activate_plugin() {
/**
* Callback function hooked to admin_action_perflab_deactivate_plugin to handle plugin deactivation.
*
* @since n.e.x.t
* @since 2.8.0
*/
function perflab_deactivate_plugin() {
// Do not proceed if plugin query arg is not present.
Expand Down Expand Up @@ -707,7 +707,7 @@ function perflab_deactivate_plugin() {
/**
* Handles the standalone plugin install and activation via AJAX.
*
* @since n.e.x.t
* @since 2.8.0
*/
function perflab_install_activate_standalone_plugins_callback() {
if ( ! wp_verify_nonce( $_REQUEST['nonce'], 'perflab-install-activate-plugins' ) ) {
Expand Down Expand Up @@ -787,7 +787,7 @@ function perflab_install_activate_standalone_plugins_callback() {
/**
* Callback function hooked to admin_notices to render admin notices on the plugin's screen.
*
* @since n.e.x.t
* @since 2.8.0
*/
function perflab_plugin_admin_notices() {
if ( isset( $_GET['activate'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
Expand Down Expand Up @@ -852,7 +852,7 @@ function perflab_plugin_admin_notices() {
/**
* Returns an array of active module data with inactive standalone plugins.
*
* @since n.e.x.t
* @since 2.8.0
*
* @return array Array of active module data with inactive standalone plugins, otherwise an empty array.
*/
Expand All @@ -875,7 +875,7 @@ function perflab_get_active_module_data_with_inactive_standalone_plugins() {
/**
* Callback function to handle admin inline style.
*
* @since n.e.x.t
* @since 2.8.0
*/
function perflab_print_modules_page_style() {
?>
Expand Down
10 changes: 5 additions & 5 deletions admin/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Gets plugin info for the given plugin slug from WordPress.org.
*
* @since n.e.x.t
* @since 2.8.0
*
* @param string $plugin_slug The string identifier for the plugin in questions slug.
* @return array Array of plugin data, or empty if none/error.
Expand Down Expand Up @@ -43,7 +43,7 @@ function perflab_query_plugin_info( string $plugin_slug ) {
/**
* Returns an array of WPP standalone plugins.
*
* @since n.e.x.t
* @since 2.8.0
*
* @return array List of WPP standalone plugins as slugs.
*/
Expand All @@ -58,7 +58,7 @@ function perflab_get_standalone_plugins() {
/**
* Returns an array of standalone plugins with currently active modules.
*
* @since n.e.x.t
* @since 2.8.0
*
* @return string[]
*/
Expand All @@ -75,7 +75,7 @@ static function ( $module ) use ( $modules ) {
/**
* Renders plugin UI for managing standalone plugins within PL Settings screen.
*
* @since n.e.x.t
* @since 2.8.0
*/
function perflab_render_plugins_ui() {
require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
Expand Down Expand Up @@ -119,7 +119,7 @@ function perflab_render_plugins_ui() {
*
* This is adapted from `WP_Plugin_Install_List_Table::display_rows()` in core.
*
* @since n.e.x.t
* @since 2.8.0
*
* @see WP_Plugin_Install_List_Table::display_rows()
* @link https://github.com/WordPress/wordpress-develop/blob/0b8ca16ea3bd9722bd1a38f8ab68901506b1a0e7/src/wp-admin/includes/class-wp-plugin-install-list-table.php#L467-L830
Expand Down
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 Team, which is a collection of standalone performance modules.
* Requires at least: 6.3
* Requires PHP: 7.0
* Version: 2.7.0
* Version: 2.8.0
* Author: WordPress Performance Team
* Author URI: https://make.wordpress.org/performance/
* License: GPLv2 or later
Expand All @@ -19,7 +19,7 @@
exit; // Exit if accessed directly.
}

define( 'PERFLAB_VERSION', '2.7.0' );
define( 'PERFLAB_VERSION', '2.8.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 @@ -236,7 +236,7 @@ function perflab_render_generator() {
* Checks whether the given module can be loaded in the current environment.
*
* @since 1.3.0
* @since n.e.x.t The function may now alternatively return a WP_Error.
* @since 2.8.0 The function may now alternatively return a WP_Error.
*
* @param string $module Slug of the module.
* @return bool|WP_Error True if the module can be loaded, or false or a WP_Error with more concrete information otherwise.
Expand Down Expand Up @@ -535,7 +535,7 @@ function perflab_run_module_activation_deactivation( $old_value, $value ) {
/**
* Reverts the module migration pointer dismissal for the given user.
*
* @since n.e.x.t
* @since 2.8.0
*
* @param WP_User $user The WP_User object.
*/
Expand Down
2 changes: 1 addition & 1 deletion modules/database/audit-autoloaded-options/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 Site Health module is supported or not.
*
* @since n.e.x.t
* @since 2.8.0
* @package performance-lab
*/

Expand Down
2 changes: 1 addition & 1 deletion modules/images/webp-support/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 Site Health module is supported or not.
*
* @since n.e.x.t
* @since 2.8.0
* @package performance-lab
*/

Expand Down
2 changes: 1 addition & 1 deletion modules/js-and-css/audit-enqueued-assets/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 Site Health module is supported or not.
*
* @since n.e.x.t
* @since 2.8.0
* @package performance-lab
*/

Expand Down
20 changes: 19 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: wordpressdotorg
Requires at least: 6.3
Tested up to: 6.4
Requires PHP: 7.0
Stable tag: 2.7.0
Stable tag: 2.8.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 Down Expand Up @@ -79,6 +79,24 @@ By default, the WebP Uploads module will only generate WebP versions of the imag

== Changelog ==

= 2.8.0 =

**Features**

* Infrastructure: Introduce UI for managing Performance Lab standalone plugins. ([864](https://github.com/WordPress/performance/pull/864))

**Enhancements**

* Infrastructure: Add support for plugin live preview in the plugin directory. ([890](https://github.com/WordPress/performance/pull/890))
* Infrastructure: Allow module `can-load.php` callbacks to return a `WP_Error` with more information. ([891](https://github.com/WordPress/performance/pull/891))
* Infrastructure: Implement admin pointer to indicate to the user they need to migrate modules to their standalone plugins. ([910](https://github.com/WordPress/performance/pull/910))
* Infrastructure: Implement migration logic and UI from Performance Lab modules to their standalone plugins. ([899](https://github.com/WordPress/performance/pull/899))
* Infrastructure: Reset admin pointer dismissal for module migration when the user activates a module. ([915](https://github.com/WordPress/performance/pull/915))

**Bug Fixes**

* Infrastructure: Fix construction of translation strings in admin/plugins.php. ([925](https://github.com/WordPress/performance/pull/925))

= 2.7.0 =

**Enhancements**
Expand Down

0 comments on commit 135e93f

Please sign in to comment.