diff --git a/docs/reference-guides/slotfills/main-dashboard-button.md b/docs/reference-guides/slotfills/main-dashboard-button.md index b55ed50648db1..593c5c57ca297 100644 --- a/docs/reference-guides/slotfills/main-dashboard-button.md +++ b/docs/reference-guides/slotfills/main-dashboard-button.md @@ -33,7 +33,7 @@ registerPlugin( 'main-dashboard-button-test', { ### Change the icon and link -This example will change the icon in the header to indicate an external link that will take the user to http://wordpress.org when clicked. +This example will change the icon in the header to indicate an external link that will take the user to https://wordpress.org when clicked. ```js import { registerPlugin } from '@wordpress/plugins'; @@ -45,7 +45,7 @@ import { external } from '@wordpress/icons'; const MainDashboardButtonIconTest = () => ( - + ); @@ -54,4 +54,4 @@ registerPlugin( 'main-dashboard-button-icon-test', { } ); ``` -![The edit post screen in fullscreen mode displaying an external link icon instead of the default W](https://developer.wordpress.org/files/2024/08/main-dashboard-button-external-link-example.png 'Change the icon in the header to indicate an external link that will take the user to http://wordpress.org when clicked') +![The edit post screen in fullscreen mode displaying an external link icon instead of the default W](https://developer.wordpress.org/files/2024/08/main-dashboard-button-external-link-example.png 'Change the icon in the header to indicate an external link that will take the user to https://wordpress.org when clicked') diff --git a/lib/class-wp-theme-json-resolver-gutenberg.php b/lib/class-wp-theme-json-resolver-gutenberg.php index 1f45d897a77cc..ddba48f88483d 100644 --- a/lib/class-wp-theme-json-resolver-gutenberg.php +++ b/lib/class-wp-theme-json-resolver-gutenberg.php @@ -359,7 +359,7 @@ public static function get_theme_data( $deprecated = array(), $options = array() } if ( current_theme_supports( 'experimental-link-color' ) ) { _doing_it_wrong( - current_theme_supports( 'experimental-link-color' ), + "add_theme_support( 'experimental-link-color' )", __( '`experimental-link-color` is no longer supported. Use `link-color` instead.', 'gutenberg' ), '6.3.0' ); diff --git a/lib/client-assets.php b/lib/client-assets.php index f95ac27f81d01..4a94ca212c342 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -539,7 +539,7 @@ function gutenberg_enqueue_stored_styles( $options = array() ) { // Combines Core styles. if ( ! empty( $compiled_core_stylesheet ) ) { - wp_register_style( $style_tag_id, false, array(), true, true ); + wp_register_style( $style_tag_id, false, array(), true ); wp_add_inline_style( $style_tag_id, $compiled_core_stylesheet ); wp_enqueue_style( $style_tag_id ); } @@ -562,7 +562,7 @@ function gutenberg_enqueue_stored_styles( $options = array() ) { $styles = gutenberg_style_engine_get_stylesheet_from_context( $store_name, $options ); if ( ! empty( $styles ) ) { $key = "wp-style-engine-$store_name"; - wp_register_style( $key, false, array(), true, true ); + wp_register_style( $key, false, array(), true ); wp_add_inline_style( $key, $styles ); wp_enqueue_style( $key ); } diff --git a/lib/experimental/sync/class-gutenberg-http-signaling-server.php b/lib/experimental/sync/class-gutenberg-http-signaling-server.php index a41e26fdac163..3448e82a4c31d 100644 --- a/lib/experimental/sync/class-gutenberg-http-signaling-server.php +++ b/lib/experimental/sync/class-gutenberg-http-signaling-server.php @@ -172,7 +172,7 @@ private static function handle_read_pending_messages( $subscriber_to_messages_pa if ( ! $fd ) { $retries = isset( $_COOKIE['signaling_server_retries'] ) ? intval( $_COOKIE['signaling_server_retries'] ) : 0; $secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ); - setcookie( 'signaling_server_retries', $retries + 1, time() + DAY_IN_SECONDS, SITECOOKIEPATH, '', $secure ); + setcookie( 'signaling_server_retries', (string) ( $retries + 1 ), time() + DAY_IN_SECONDS, SITECOOKIEPATH, '', $secure ); echo 'id: ' . time() . PHP_EOL; echo 'event: error' . PHP_EOL; echo 'data: ' . 'Could not open required file.' . PHP_EOL . PHP_EOL; @@ -183,7 +183,7 @@ private static function handle_read_pending_messages( $subscriber_to_messages_pa if ( isset( $_COOKIE['signaling_server_retries'] ) ) { $secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ); // unset the cookie using a past expiration date. - setcookie( 'signaling_server_retries', 0, time() - DAY_IN_SECONDS, SITECOOKIEPATH, '', $secure ); + setcookie( 'signaling_server_retries', '0', time() - DAY_IN_SECONDS, SITECOOKIEPATH, '', $secure ); } echo 'retry: 3000' . PHP_EOL; diff --git a/packages/block-editor/src/components/spacing-sizes-control/linked-button.js b/packages/block-editor/src/components/spacing-sizes-control/linked-button.js index f6d56be66072a..413dc88a52e9b 100644 --- a/packages/block-editor/src/components/spacing-sizes-control/linked-button.js +++ b/packages/block-editor/src/components/spacing-sizes-control/linked-button.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { Button, Tooltip } from '@wordpress/components'; +import { Button } from '@wordpress/components'; import { link, linkOff } from '@wordpress/icons'; import { __ } from '@wordpress/i18n'; @@ -9,14 +9,12 @@ export default function LinkedButton( { isLinked, ...props } ) { const label = isLinked ? __( 'Unlink sides' ) : __( 'Link sides' ); return ( - -