File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
inc/Editor/BlockManagement Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,20 +32,20 @@ public static function add_block_category( array $block_categories ): array {
32
32
}
33
33
34
34
public static function register_blocks (): void {
35
- $ all_remote_data_config = [];
35
+ $ all_remote_block_configs = [];
36
36
$ scripts_to_localize = [];
37
37
38
38
foreach ( ConfigStore::get_block_configurations () as $ block_configuration ) {
39
39
$ block_name = $ block_configuration ['name ' ];
40
40
41
41
[ $ config , $ script_handle ] = self ::register_block_configuration ( $ block_configuration );
42
- $ all_remote_data_config [ $ block_name ] = $ config ;
42
+ $ all_remote_block_configs [ $ block_name ] = $ config ;
43
43
$ scripts_to_localize [] = $ script_handle ;
44
44
}
45
45
46
46
foreach ( array_unique ( $ scripts_to_localize ) as $ script_handle ) {
47
47
wp_localize_script ( $ script_handle , 'REMOTE_DATA_BLOCKS ' , [
48
- 'config ' => $ all_remote_data_config ,
48
+ 'config ' => $ all_remote_block_configs ,
49
49
'rest_url ' => RemoteDataController::get_url (),
50
50
'tracks_global_properties ' => TracksAnalytics::get_global_properties (),
51
51
] );
You can’t perform that action at this time.
0 commit comments