File tree Expand file tree Collapse file tree 1 file changed +3
-20
lines changed
Expand file tree Collapse file tree 1 file changed +3
-20
lines changed Original file line number Diff line number Diff line change 11<?php
2- function disable_block_validation () {
3- // Disables the strict block validation.
4- add_filter ('block_editor_rest_api_preload_paths ' , function ($ preload_paths ) {
5- return $ preload_paths ;
6- });
7-
8- // Allows invalid block content.
9- add_filter ('rest_request_before_callbacks ' , function ($ response ) {
10- return $ response ;
11- });
12-
13- // Ensures blocks render even if invalid.
14- add_filter ('rest_request_after_callbacks ' , function ($ response ) {
15- return $ response ;
16- });
17-
18- // Disable block validation in the REST API.
19- add_filter ('block_editor_rest_api_preload_paths ' , '__return_empty_array ' );
20- }
21- add_action ('init ' , 'disable_block_validation ' );
2+ add_filter ('block_editor_rest_api_preload_paths ' , '__return_empty_array ' );
223
234function register_osi_patterns () {
245 register_block_pattern (
@@ -29,6 +10,7 @@ function register_osi_patterns() {
2910 'content ' => <<<HTML
3011 <!-- wp:group {"align":"full"} -->
3112 <div class="wp-block-group alignfull header-header-two">
13+ <!-- wp:html -->
3214 <div class="header-two-solari header-top">
3315 <div class="container">
3416 <div class="row">
@@ -59,6 +41,7 @@ function register_osi_patterns() {
5941 </div>
6042 </div>
6143 </div>
44+ <!-- /wp:html -->
6245 </div>
6346 <!-- /wp:group -->
6447 HTML ,
You can’t perform that action at this time.
0 commit comments