Skip to content

Commit 27db799

Browse files
committed
Revert "Take padding values from theme, if any"
This reverts commit cf2685f. See conversation at #23177 (comment)
1 parent cf2685f commit 27db799

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

lib/compat.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -460,20 +460,3 @@ function gutenberg_render_block_with_assigned_block_context( $pre_render, $parse
460460
* @see WP_Block::render
461461
*/
462462
remove_action( 'enqueue_block_assets', 'wp_enqueue_registered_block_scripts_and_styles' );
463-
464-
465-
/**
466-
* Extends block editor settings to include a list of values for padding.
467-
*
468-
* @param array $settings Default editor settings.
469-
*
470-
* @return array Filtered editor settings.
471-
*/
472-
function gutenberg_add_padding_presets( $settings ) {
473-
list( $editor_padding ) = (array) get_theme_support( 'editor-spacing-padding' );
474-
if ( false !== $editor_padding ) {
475-
$settings['padding'] = $editor_padding;
476-
}
477-
return $settings;
478-
}
479-
add_filter( 'block_editor_settings', 'gutenberg_add_padding_presets' );

0 commit comments

Comments
 (0)