Customize: Hide native control on background position field.
Hide the browser's native radio button on the custom background position selector in the Customizer and the legacy background screen. This fixes an issue causing both to display. Props mukesh27, ravipatel, sabernhardt, walbo. Fixes #53803. Built from https://develop.svn.wordpress.org/trunk@51637 git-svn-id: http://core.svn.wordpress.org/trunk@51243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
27522c6f67
commit
cda7c787e8
|
@ -418,7 +418,7 @@ class Custom_Background {
|
|||
<div class="button-group">
|
||||
<?php foreach ( $group as $value => $input ) : ?>
|
||||
<label>
|
||||
<input class="screen-reader-text" name="background-position" type="radio" value="<?php echo esc_attr( $value ); ?>"<?php checked( $value, $background_position ); ?>>
|
||||
<input class="ui-helper-hidden-accessible" name="background-position" type="radio" value="<?php echo esc_attr( $value ); ?>"<?php checked( $value, $background_position ); ?>>
|
||||
<span class="button display-options position"><span class="<?php echo esc_attr( $input['icon'] ); ?>" aria-hidden="true"></span></span>
|
||||
<span class="screen-reader-text"><?php echo $input['label']; ?></span>
|
||||
</label>
|
||||
|
|
|
@ -96,7 +96,7 @@ class WP_Customize_Background_Position_Control extends WP_Customize_Control {
|
|||
<div class="button-group">
|
||||
<?php foreach ( $group as $value => $input ) : ?>
|
||||
<label>
|
||||
<input class="screen-reader-text" name="background-position" type="radio" value="<?php echo esc_attr( $value ); ?>">
|
||||
<input class="ui-helper-hidden-accessible" name="background-position" type="radio" value="<?php echo esc_attr( $value ); ?>">
|
||||
<span class="button display-options position"><span class="<?php echo esc_attr( $input['icon'] ); ?>" aria-hidden="true"></span></span>
|
||||
<span class="screen-reader-text"><?php echo $input['label']; ?></span>
|
||||
</label>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-51636';
|
||||
$wp_version = '5.9-alpha-51637';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue