PluginProbe
Post Grid Gutenberg Blocks – PostX / 5.1.0
Post Grid Gutenberg Blocks – PostX v5.1.0
5.1.1 5.1.0 5.0.41 5.0.39 5.0.38 5.0.37 5.0.36 5.0.35 5.0.34 5.0.33 5.0.32 5.0.31 5.0.30 5.0.29 5.0.28 5.0.27 5.0.26 5.0.25 5.0.23 5.0.24 5.0.22 5.0.21 5.0.20 5.0.19 5.0.18 All 240 releases
← All changes | addons/divi/divi.php +4 -1 5.0.21 → 5.1.0 View file →
@@ -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 }
@@ -52,8 +54,9 @@
52 54 }
53 55 wp_reset_postdata();
54 56 }
55 57 } elseif ( in_array( 'et-fb', $body_class ) ) {
58 + /* translators: %s: Navigation path to the Saved Templates page. */
56 59 $content = '<p style="text-align:center;">' . sprintf( esc_html__( 'Pick a Template from your saved ones. Or create a template from: %s.', 'ultimate-post' ) . ' ', '<strong><i>' . esc_html__( 'Dashboard > PostX > Saved Templates', 'ultimate-post' ) . '</i></strong>' ) . '</p>';
57 60 }
58 61
59 62 // Render module content