Fix deprecated usage of passing null to explode()
As of PHP 8.1, explode() does not permit null as its second argument. This results in warnings being spat out on every page because of a usage of this in wp-includes/block-supports/layout.php. See #53635. Props noisysocks. Built from https://develop.svn.wordpress.org/trunk@52380 git-svn-id: http://core.svn.wordpress.org/trunk@51972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e02e7be1b6
commit
7b3c904f37
|
@ -46,8 +46,8 @@ function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false
|
||||||
|
|
||||||
$style = '';
|
$style = '';
|
||||||
if ( 'default' === $layout_type ) {
|
if ( 'default' === $layout_type ) {
|
||||||
$content_size = isset( $layout['contentSize'] ) ? $layout['contentSize'] : null;
|
$content_size = isset( $layout['contentSize'] ) ? $layout['contentSize'] : '';
|
||||||
$wide_size = isset( $layout['wideSize'] ) ? $layout['wideSize'] : null;
|
$wide_size = isset( $layout['wideSize'] ) ? $layout['wideSize'] : '';
|
||||||
|
|
||||||
$all_max_width_value = $content_size ? $content_size : $wide_size;
|
$all_max_width_value = $content_size ? $content_size : $wide_size;
|
||||||
$wide_max_width_value = $wide_size ? $wide_size : $content_size;
|
$wide_max_width_value = $wide_size ? $wide_size : $content_size;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.9-beta3-52379';
|
$wp_version = '5.9-beta3-52380';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue