Skip to content

Commit 1f2d07b

Browse files
committed
Fix PHPCS issues
1 parent 6f41da3 commit 1f2d07b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/wp-accessibility-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function wpa_update_settings() {
108108
update_option( 'wpa_search_alt', $wpa_search_alt );
109109
update_option( 'wpa_diagnostics', $wpa_diagnostics );
110110
update_option( 'wpa_disable_fullscreen', $wpa_disable_fullscreen );
111-
update_option( 'wpa_disable_file_embed' , $wpa_disable_file_embed );
111+
update_option( 'wpa_disable_file_embed', $wpa_disable_file_embed );
112112
update_option( 'wpa_allow_h1', $wpa_allow_h1 );
113113
update_option( 'wpa_track_stats', $wpa_track_stats );
114114
update_option( 'wpa_disable_logout', $wpa_disable_logout );

src/wp-accessibility.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -861,13 +861,13 @@ function wpa_disable_editor_fullscreen_by_default() {
861861
* @return array
862862
*/
863863
function wpa_disable_file_embed_by_default( $blockdata ) {
864-
if ( 'core/file' === $blockdata['name'] && 'on' === get_option( 'wpa_disable_file_embed' ) ) {
865-
if ( isset( $blockdata['attributes']['displayPreview'] ) ) {
866-
$blockdata['attributes']['displayPreview']['default'] = false;
867-
}
868-
}
864+
if ( 'core/file' === $blockdata['name'] && 'on' === get_option( 'wpa_disable_file_embed' ) ) {
865+
if ( isset( $blockdata['attributes']['displayPreview'] ) ) {
866+
$blockdata['attributes']['displayPreview']['default'] = false;
867+
}
868+
}
869869

870-
return $blockdata;
870+
return $blockdata;
871871
}
872872
add_filter( 'block_type_metadata', 'wpa_disable_file_embed_by_default' );
873873

0 commit comments

Comments
 (0)