Plugin Directory

Changeset 3240306


Ignore:
Timestamp:
02/13/2025 07:41:57 PM (9 months ago)
Author:
performanceteam
Message:

Update to version 3.9.0 from GitHub

Location:
performance-lab
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • performance-lab/tags/3.9.0/includes/server-timing/class-perflab-server-timing.php

    r3137740 r3240306  
    210210    public function use_output_buffer(): bool {
    211211        $options = (array) get_option( PERFLAB_SERVER_TIMING_SETTING, array() );
    212         $enabled = ! empty( $options['output_buffering'] );
     212        $enabled = isset( $options['output_buffering'] ) && (bool) $options['output_buffering'];
    213213
    214214        /**
     
    221221         * @since 1.8.0
    222222         *
    223          * @param bool $use_output_buffer Whether to use an output buffer.
     223         * @param bool $enabled Whether to use an output buffer.
    224224         */
    225225        return (bool) apply_filters( 'perflab_server_timing_use_output_buffer', $enabled );
  • performance-lab/tags/3.9.0/includes/site-health/audit-autoloaded-options/hooks.php

    r3229870 r3240306  
    6464    }
    6565
    66     if ( empty( $option_name ) ) {
     66    if ( '' === $option_name ) {
    6767        wp_die( esc_html__( 'Invalid option name.', 'performance-lab' ) );
    6868    }
  • performance-lab/tags/3.9.0/includes/site-health/audit-enqueued-assets/hooks.php

    r3229870 r3240306  
    3636            // Add any extra data (inlined) that was passed with the script.
    3737            $inline_size = 0;
    38             if ( ! empty( $script->extra ) && ! empty( $script->extra['after'] ) ) {
     38            if (
     39                isset( $script->extra['after'] ) &&
     40                is_array( $script->extra['after'] )
     41            ) {
    3942                foreach ( $script->extra['after'] as $extra ) {
    4043                    $inline_size += ( is_string( $extra ) ) ? mb_strlen( $extra, '8bit' ) : 0;
     
    7982
    8083            // Check if we already have the style's path ( part of a refactor for block styles from 5.9 ).
    81             if ( ! empty( $style->extra ) && ! empty( $style->extra['path'] ) ) {
     84            if (
     85                isset( $style->extra['path'] ) &&
     86                is_string( $style->extra['path'] ) &&
     87                '' !== $style->extra['path']
     88            ) {
    8289                $path = $style->extra['path'];
    8390            } else { // Fallback to getting the path from the style's src.
     
    9097            // Add any extra data (inlined) that was passed with the style.
    9198            $inline_size = 0;
    92             if ( ! empty( $style->extra ) && ! empty( $style->extra['after'] ) ) {
     99            if (
     100                isset( $style->extra['after'] ) &&
     101                is_array( $style->extra['after'] )
     102            ) {
    93103                foreach ( $style->extra['after'] as $extra ) {
    94104                    $inline_size += ( is_string( $extra ) ) ? mb_strlen( $extra, '8bit' ) : 0;
  • performance-lab/tags/3.9.0/load.php

    r3229870 r3240306  
    66 * Requires at least: 6.6
    77 * Requires PHP: 7.2
    8  * Version: 3.8.0
     8 * Version: 3.9.0
    99 * Author: WordPress Performance Team
    1010 * Author URI: https://make.wordpress.org/performance/
     
    2222// @codeCoverageIgnoreEnd
    2323
    24 define( 'PERFLAB_VERSION', '3.8.0' );
     24define( 'PERFLAB_VERSION', '3.9.0' );
    2525define( 'PERFLAB_MAIN_FILE', __FILE__ );
    2626define( 'PERFLAB_PLUGIN_DIR_PATH', plugin_dir_path( PERFLAB_MAIN_FILE ) );
     
    105105        'embed-optimizer'         => array(
    106106            'constant'     => 'EMBED_OPTIMIZER_VERSION',
    107             'experimental' => true,
     107            'experimental' => false,
    108108        ),
    109109        'image-prioritizer'       => array(
    110110            'constant'     => 'IMAGE_PRIORITIZER_VERSION',
    111             'experimental' => true,
     111            'experimental' => false,
    112112        ),
    113113        'performant-translations' => array(
  • performance-lab/tags/3.9.0/readme.txt

    r3229870 r3240306  
    33Contributors: wordpressdotorg
    44Tested up to: 6.7
    5 Stable tag:   3.8.0
     5Stable tag:   3.9.0
    66License:      GPLv2 or later
    77License URI:  https://www.gnu.org/licenses/gpl-2.0.html
     
    1616The feature plugins which are currently featured by this plugin are:
    1717
     18* [Embed Optimizer](https://wordpress.org/plugins/embed-optimizer/)
    1819* [Image Placeholders](https://wordpress.org/plugins/dominant-color-images/)
     20* [Image Prioritizer](https://wordpress.org/plugins/image-prioritizer/)
    1921* [Modern Image Formats](https://wordpress.org/plugins/webp-uploads/)
     22* [Optimization Detective](https://wordpress.org/plugins/optimization-detective/) (dependency for Embed Optimizer and Image Prioritizer)
    2023* [Performant Translations](https://wordpress.org/plugins/performant-translations/)
    2124* [Speculative Loading](https://wordpress.org/plugins/speculation-rules/)
    22 * [Embed Optimizer](https://wordpress.org/plugins/embed-optimizer/) _(experimental)_
    2325* [Enhanced Responsive Images](https://wordpress.org/plugins/auto-sizes/) _(experimental)_
    24 * [Image Prioritizer](https://wordpress.org/plugins/image-prioritizer/) _(experimental)_
    2526* [Web Worker Offloading](https://wordpress.org/plugins/web-worker-offloading/) _(experimental)_
    2627
     
    7172
    7273== Changelog ==
     74
     75= 3.9.0 =
     76
     77**Enhancements**
     78
     79* Remove experimental flags from Embed Optimizer and Image Prioritizer. ([1846](https://github.com/WordPress/performance/pull/1846))
    7380
    7481= 3.8.0 =
  • performance-lab/trunk/includes/server-timing/class-perflab-server-timing.php

    r3137740 r3240306  
    210210    public function use_output_buffer(): bool {
    211211        $options = (array) get_option( PERFLAB_SERVER_TIMING_SETTING, array() );
    212         $enabled = ! empty( $options['output_buffering'] );
     212        $enabled = isset( $options['output_buffering'] ) && (bool) $options['output_buffering'];
    213213
    214214        /**
     
    221221         * @since 1.8.0
    222222         *
    223          * @param bool $use_output_buffer Whether to use an output buffer.
     223         * @param bool $enabled Whether to use an output buffer.
    224224         */
    225225        return (bool) apply_filters( 'perflab_server_timing_use_output_buffer', $enabled );
  • performance-lab/trunk/includes/site-health/audit-autoloaded-options/hooks.php

    r3229870 r3240306  
    6464    }
    6565
    66     if ( empty( $option_name ) ) {
     66    if ( '' === $option_name ) {
    6767        wp_die( esc_html__( 'Invalid option name.', 'performance-lab' ) );
    6868    }
  • performance-lab/trunk/includes/site-health/audit-enqueued-assets/hooks.php

    r3229870 r3240306  
    3636            // Add any extra data (inlined) that was passed with the script.
    3737            $inline_size = 0;
    38             if ( ! empty( $script->extra ) && ! empty( $script->extra['after'] ) ) {
     38            if (
     39                isset( $script->extra['after'] ) &&
     40                is_array( $script->extra['after'] )
     41            ) {
    3942                foreach ( $script->extra['after'] as $extra ) {
    4043                    $inline_size += ( is_string( $extra ) ) ? mb_strlen( $extra, '8bit' ) : 0;
     
    7982
    8083            // Check if we already have the style's path ( part of a refactor for block styles from 5.9 ).
    81             if ( ! empty( $style->extra ) && ! empty( $style->extra['path'] ) ) {
     84            if (
     85                isset( $style->extra['path'] ) &&
     86                is_string( $style->extra['path'] ) &&
     87                '' !== $style->extra['path']
     88            ) {
    8289                $path = $style->extra['path'];
    8390            } else { // Fallback to getting the path from the style's src.
     
    9097            // Add any extra data (inlined) that was passed with the style.
    9198            $inline_size = 0;
    92             if ( ! empty( $style->extra ) && ! empty( $style->extra['after'] ) ) {
     99            if (
     100                isset( $style->extra['after'] ) &&
     101                is_array( $style->extra['after'] )
     102            ) {
    93103                foreach ( $style->extra['after'] as $extra ) {
    94104                    $inline_size += ( is_string( $extra ) ) ? mb_strlen( $extra, '8bit' ) : 0;
  • performance-lab/trunk/load.php

    r3229870 r3240306  
    66 * Requires at least: 6.6
    77 * Requires PHP: 7.2
    8  * Version: 3.8.0
     8 * Version: 3.9.0
    99 * Author: WordPress Performance Team
    1010 * Author URI: https://make.wordpress.org/performance/
     
    2222// @codeCoverageIgnoreEnd
    2323
    24 define( 'PERFLAB_VERSION', '3.8.0' );
     24define( 'PERFLAB_VERSION', '3.9.0' );
    2525define( 'PERFLAB_MAIN_FILE', __FILE__ );
    2626define( 'PERFLAB_PLUGIN_DIR_PATH', plugin_dir_path( PERFLAB_MAIN_FILE ) );
     
    105105        'embed-optimizer'         => array(
    106106            'constant'     => 'EMBED_OPTIMIZER_VERSION',
    107             'experimental' => true,
     107            'experimental' => false,
    108108        ),
    109109        'image-prioritizer'       => array(
    110110            'constant'     => 'IMAGE_PRIORITIZER_VERSION',
    111             'experimental' => true,
     111            'experimental' => false,
    112112        ),
    113113        'performant-translations' => array(
  • performance-lab/trunk/readme.txt

    r3229870 r3240306  
    33Contributors: wordpressdotorg
    44Tested up to: 6.7
    5 Stable tag:   3.8.0
     5Stable tag:   3.9.0
    66License:      GPLv2 or later
    77License URI:  https://www.gnu.org/licenses/gpl-2.0.html
     
    1616The feature plugins which are currently featured by this plugin are:
    1717
     18* [Embed Optimizer](https://wordpress.org/plugins/embed-optimizer/)
    1819* [Image Placeholders](https://wordpress.org/plugins/dominant-color-images/)
     20* [Image Prioritizer](https://wordpress.org/plugins/image-prioritizer/)
    1921* [Modern Image Formats](https://wordpress.org/plugins/webp-uploads/)
     22* [Optimization Detective](https://wordpress.org/plugins/optimization-detective/) (dependency for Embed Optimizer and Image Prioritizer)
    2023* [Performant Translations](https://wordpress.org/plugins/performant-translations/)
    2124* [Speculative Loading](https://wordpress.org/plugins/speculation-rules/)
    22 * [Embed Optimizer](https://wordpress.org/plugins/embed-optimizer/) _(experimental)_
    2325* [Enhanced Responsive Images](https://wordpress.org/plugins/auto-sizes/) _(experimental)_
    24 * [Image Prioritizer](https://wordpress.org/plugins/image-prioritizer/) _(experimental)_
    2526* [Web Worker Offloading](https://wordpress.org/plugins/web-worker-offloading/) _(experimental)_
    2627
     
    7172
    7273== Changelog ==
     74
     75= 3.9.0 =
     76
     77**Enhancements**
     78
     79* Remove experimental flags from Embed Optimizer and Image Prioritizer. ([1846](https://github.com/WordPress/performance/pull/1846))
    7380
    7481= 3.8.0 =
Note: See TracChangeset for help on using the changeset viewer.