We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8ac39c commit 539a330Copy full SHA for 539a330
1 file changed
src/wp-admin/customize.php
@@ -288,7 +288,7 @@
288
$class .= ' active';
289
}
290
?>
291
- <button type="button" class="<?php echo esc_attr( $class ); ?>" aria-pressed="<?php echo esc_attr( (string) $active ); ?>" data-device="<?php echo esc_attr( $device ); ?>">
+ <button type="button" class="<?php echo esc_attr( $class ); ?>" aria-pressed="<?php echo esc_attr( $active ? 'true' : 'false' ); ?>" data-device="<?php echo esc_attr( $device ); ?>">
292
<span class="screen-reader-text"><?php echo esc_html( $settings['label'] ); ?></span>
293
</button>
294
<?php endforeach; ?>
0 commit comments