| @@ -1,5 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | +defined( 'ABSPATH' ) || exit; | |
| 3 | + | |
| 2 | 4 | add_action( 'et_builder_ready', 'ultp_postx_template_divi_modules' ); |
| 3 | 5 | |
| 4 | 6 | function ultp_postx_template_divi_modules() { |
| 5 | 7 | |
| @@ -44,9 +46,9 @@ | ||
| 44 | 46 | while ( $the_query->have_posts() ) { |
| 45 | 47 | $the_query->the_post(); |
| 46 | 48 | ob_start(); |
| 47 | 49 | if ( in_array( 'et-fb', $body_class ) ) { |
| 48 | - echo ultimate_post()->build_css_for_inline_print( $templates, true ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 50 | + echo ultimate_post()->build_css_for_inline_print( $templates, true ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- <style> tag from build_css_for_inline_print(): integer post ID, CSS passed through wp_strip_all_tags(). | |
| 49 | 51 | } |
| 50 | 52 | the_content(); |
| 51 | 53 | $content = ob_get_clean(); |
| 52 | 54 | } |