File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff line change @@ -861,13 +861,13 @@ function wpa_disable_editor_fullscreen_by_default() {
861861 * @return array
862862 */
863863function 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}
872872add_filter ( 'block_type_metadata ' , 'wpa_disable_file_embed_by_default ' );
873873
You can’t perform that action at this time.
0 commit comments