Changeset 3240306
- Timestamp:
- 02/13/2025 07:41:57 PM (9 months ago)
- Location:
- performance-lab
- Files:
-
- 10 edited
- 1 copied
-
tags/3.9.0 (copied) (copied from performance-lab/trunk)
-
tags/3.9.0/includes/server-timing/class-perflab-server-timing.php (modified) (2 diffs)
-
tags/3.9.0/includes/site-health/audit-autoloaded-options/hooks.php (modified) (1 diff)
-
tags/3.9.0/includes/site-health/audit-enqueued-assets/hooks.php (modified) (3 diffs)
-
tags/3.9.0/load.php (modified) (3 diffs)
-
tags/3.9.0/readme.txt (modified) (3 diffs)
-
trunk/includes/server-timing/class-perflab-server-timing.php (modified) (2 diffs)
-
trunk/includes/site-health/audit-autoloaded-options/hooks.php (modified) (1 diff)
-
trunk/includes/site-health/audit-enqueued-assets/hooks.php (modified) (3 diffs)
-
trunk/load.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
performance-lab/tags/3.9.0/includes/server-timing/class-perflab-server-timing.php
r3137740 r3240306 210 210 public function use_output_buffer(): bool { 211 211 $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']; 213 213 214 214 /** … … 221 221 * @since 1.8.0 222 222 * 223 * @param bool $ use_output_bufferWhether to use an output buffer.223 * @param bool $enabled Whether to use an output buffer. 224 224 */ 225 225 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 64 64 } 65 65 66 if ( empty( $option_name )) {66 if ( '' === $option_name ) { 67 67 wp_die( esc_html__( 'Invalid option name.', 'performance-lab' ) ); 68 68 } -
performance-lab/tags/3.9.0/includes/site-health/audit-enqueued-assets/hooks.php
r3229870 r3240306 36 36 // Add any extra data (inlined) that was passed with the script. 37 37 $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 ) { 39 42 foreach ( $script->extra['after'] as $extra ) { 40 43 $inline_size += ( is_string( $extra ) ) ? mb_strlen( $extra, '8bit' ) : 0; … … 79 82 80 83 // 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 ) { 82 89 $path = $style->extra['path']; 83 90 } else { // Fallback to getting the path from the style's src. … … 90 97 // Add any extra data (inlined) that was passed with the style. 91 98 $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 ) { 93 103 foreach ( $style->extra['after'] as $extra ) { 94 104 $inline_size += ( is_string( $extra ) ) ? mb_strlen( $extra, '8bit' ) : 0; -
performance-lab/tags/3.9.0/load.php
r3229870 r3240306 6 6 * Requires at least: 6.6 7 7 * Requires PHP: 7.2 8 * Version: 3. 8.08 * Version: 3.9.0 9 9 * Author: WordPress Performance Team 10 10 * Author URI: https://make.wordpress.org/performance/ … … 22 22 // @codeCoverageIgnoreEnd 23 23 24 define( 'PERFLAB_VERSION', '3. 8.0' );24 define( 'PERFLAB_VERSION', '3.9.0' ); 25 25 define( 'PERFLAB_MAIN_FILE', __FILE__ ); 26 26 define( 'PERFLAB_PLUGIN_DIR_PATH', plugin_dir_path( PERFLAB_MAIN_FILE ) ); … … 105 105 'embed-optimizer' => array( 106 106 'constant' => 'EMBED_OPTIMIZER_VERSION', 107 'experimental' => true,107 'experimental' => false, 108 108 ), 109 109 'image-prioritizer' => array( 110 110 'constant' => 'IMAGE_PRIORITIZER_VERSION', 111 'experimental' => true,111 'experimental' => false, 112 112 ), 113 113 'performant-translations' => array( -
performance-lab/tags/3.9.0/readme.txt
r3229870 r3240306 3 3 Contributors: wordpressdotorg 4 4 Tested up to: 6.7 5 Stable tag: 3. 8.05 Stable tag: 3.9.0 6 6 License: GPLv2 or later 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 16 16 The feature plugins which are currently featured by this plugin are: 17 17 18 * [Embed Optimizer](https://wordpress.org/plugins/embed-optimizer/) 18 19 * [Image Placeholders](https://wordpress.org/plugins/dominant-color-images/) 20 * [Image Prioritizer](https://wordpress.org/plugins/image-prioritizer/) 19 21 * [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) 20 23 * [Performant Translations](https://wordpress.org/plugins/performant-translations/) 21 24 * [Speculative Loading](https://wordpress.org/plugins/speculation-rules/) 22 * [Embed Optimizer](https://wordpress.org/plugins/embed-optimizer/) _(experimental)_23 25 * [Enhanced Responsive Images](https://wordpress.org/plugins/auto-sizes/) _(experimental)_ 24 * [Image Prioritizer](https://wordpress.org/plugins/image-prioritizer/) _(experimental)_25 26 * [Web Worker Offloading](https://wordpress.org/plugins/web-worker-offloading/) _(experimental)_ 26 27 … … 71 72 72 73 == 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)) 73 80 74 81 = 3.8.0 = -
performance-lab/trunk/includes/server-timing/class-perflab-server-timing.php
r3137740 r3240306 210 210 public function use_output_buffer(): bool { 211 211 $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']; 213 213 214 214 /** … … 221 221 * @since 1.8.0 222 222 * 223 * @param bool $ use_output_bufferWhether to use an output buffer.223 * @param bool $enabled Whether to use an output buffer. 224 224 */ 225 225 return (bool) apply_filters( 'perflab_server_timing_use_output_buffer', $enabled ); -
performance-lab/trunk/includes/site-health/audit-autoloaded-options/hooks.php
r3229870 r3240306 64 64 } 65 65 66 if ( empty( $option_name )) {66 if ( '' === $option_name ) { 67 67 wp_die( esc_html__( 'Invalid option name.', 'performance-lab' ) ); 68 68 } -
performance-lab/trunk/includes/site-health/audit-enqueued-assets/hooks.php
r3229870 r3240306 36 36 // Add any extra data (inlined) that was passed with the script. 37 37 $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 ) { 39 42 foreach ( $script->extra['after'] as $extra ) { 40 43 $inline_size += ( is_string( $extra ) ) ? mb_strlen( $extra, '8bit' ) : 0; … … 79 82 80 83 // 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 ) { 82 89 $path = $style->extra['path']; 83 90 } else { // Fallback to getting the path from the style's src. … … 90 97 // Add any extra data (inlined) that was passed with the style. 91 98 $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 ) { 93 103 foreach ( $style->extra['after'] as $extra ) { 94 104 $inline_size += ( is_string( $extra ) ) ? mb_strlen( $extra, '8bit' ) : 0; -
performance-lab/trunk/load.php
r3229870 r3240306 6 6 * Requires at least: 6.6 7 7 * Requires PHP: 7.2 8 * Version: 3. 8.08 * Version: 3.9.0 9 9 * Author: WordPress Performance Team 10 10 * Author URI: https://make.wordpress.org/performance/ … … 22 22 // @codeCoverageIgnoreEnd 23 23 24 define( 'PERFLAB_VERSION', '3. 8.0' );24 define( 'PERFLAB_VERSION', '3.9.0' ); 25 25 define( 'PERFLAB_MAIN_FILE', __FILE__ ); 26 26 define( 'PERFLAB_PLUGIN_DIR_PATH', plugin_dir_path( PERFLAB_MAIN_FILE ) ); … … 105 105 'embed-optimizer' => array( 106 106 'constant' => 'EMBED_OPTIMIZER_VERSION', 107 'experimental' => true,107 'experimental' => false, 108 108 ), 109 109 'image-prioritizer' => array( 110 110 'constant' => 'IMAGE_PRIORITIZER_VERSION', 111 'experimental' => true,111 'experimental' => false, 112 112 ), 113 113 'performant-translations' => array( -
performance-lab/trunk/readme.txt
r3229870 r3240306 3 3 Contributors: wordpressdotorg 4 4 Tested up to: 6.7 5 Stable tag: 3. 8.05 Stable tag: 3.9.0 6 6 License: GPLv2 or later 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 16 16 The feature plugins which are currently featured by this plugin are: 17 17 18 * [Embed Optimizer](https://wordpress.org/plugins/embed-optimizer/) 18 19 * [Image Placeholders](https://wordpress.org/plugins/dominant-color-images/) 20 * [Image Prioritizer](https://wordpress.org/plugins/image-prioritizer/) 19 21 * [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) 20 23 * [Performant Translations](https://wordpress.org/plugins/performant-translations/) 21 24 * [Speculative Loading](https://wordpress.org/plugins/speculation-rules/) 22 * [Embed Optimizer](https://wordpress.org/plugins/embed-optimizer/) _(experimental)_23 25 * [Enhanced Responsive Images](https://wordpress.org/plugins/auto-sizes/) _(experimental)_ 24 * [Image Prioritizer](https://wordpress.org/plugins/image-prioritizer/) _(experimental)_25 26 * [Web Worker Offloading](https://wordpress.org/plugins/web-worker-offloading/) _(experimental)_ 26 27 … … 71 72 72 73 == 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)) 73 80 74 81 = 3.8.0 =
Note: See TracChangeset
for help on using the changeset viewer.