Merged in feature/from-pantheon (pull request #16)

code from pantheon

* code from pantheon
This commit is contained in:
Tony Volpe
2024-01-10 17:03:02 +00:00
parent 054b4fffc9
commit 4eb982d7a8
16492 changed files with 3475854 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
/**
* Modified block template canvas file to render Visual and Theme Builder.
*
* @package Divi
*/
/**
* Get the template HTML.
* This needs to run before <head> so that blocks can add scripts and styles in wp_head().
*/
$template_html = get_the_block_template_html();
// Disable deprecated warning temporarily because we're going to use default header.
add_filter( 'deprecated_file_trigger_error', '__return_false' );
get_header();
remove_filter( 'deprecated_file_trigger_error', '__return_false' );
echo $template_html; // phpcs:ignore WordPress.Security.EscapeOutput -- Already escaped.
// Disable deprecated warning temporarily because we're going to use default footer.
add_filter( 'deprecated_file_trigger_error', '__return_false' );
get_footer();
remove_filter( 'deprecated_file_trigger_error', '__return_false' );