[wp-trac] [WordPress Trac] #57599: `wp_theme_json_data_default` filter is not properly to setting `settings.spacing.padding` value

WordPress Trac noreply at wordpress.org
Wed Feb 1 18:39:57 UTC 2023


#57599: `wp_theme_json_data_default` filter is not properly to setting
`settings.spacing.padding` value
--------------------------+------------------------------
 Reporter:  fabiankaegy   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  6.1.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by fabiankaegy):

 You can also verify that the setting isn't getting applied correctly
 using:

 {{{#!php
 <?php
 add_action( 'enqueue_block_editor_assets', function() {
         $core_settings =
 WP_Theme_JSON_Resolver::get_core_data()->get_settings();
         $block_settings =
 WP_Theme_JSON_Resolver::get_block_data()->get_settings();
         $theme_settings =
 WP_Theme_JSON_Resolver::get_theme_data()->get_settings();
         $user_settings =
 WP_Theme_JSON_Resolver::get_user_data()->get_settings();
         $settings =
 WP_Theme_JSON_Resolver::get_merged_data()->get_settings();
 } );
 }}}

 with XDebug for example

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57599#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list