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/templates/Shortcode.php +4 -4 5.0.37 → 5.1.0 View file →
@@ -23,9 +23,9 @@
23 23 $id = is_numeric( $id ) ? (float) $id : false;
24 24
25 25 if ( $id ) {
26 26 if ( class_exists( 'SitePress' ) ) {
27 - $id = apply_filters( 'wpml_object_id', $id, 'ultp_templates', true );
27 + $id = apply_filters( 'wpml_object_id', $id, 'ultp_templates', true ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- WPML hook.
28 28 }
29 29 $content = '';
30 30 $pre_content = '';
31 31 $content_post = get_post( $id );
@@ -38,14 +38,14 @@
38 38 'css' => '',
39 39 )
40 40 );
41 41 // Breakdance builder support for its shortcode render
42 - $current_url = isset( $_SERVER['REQUEST_URI'] ) ? esc_url( $_SERVER['REQUEST_URI'] ) : '';
43 - if ( ! empty( $_GET['_breakdance_doing_ajax'] ) ||
42 + $current_url = isset( $_SERVER['REQUEST_URI'] ) ? esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : '';
43 + if ( ! empty( $_GET['_breakdance_doing_ajax'] ) || // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only Breakdance editor detection.
44 44 strpos( $current_url, 'bricks/v1/render_element' ) !== false
45 45 ) {
46 46
47 - if ( ! empty( $_GET['_breakdance_doing_ajax'] ) && get_template() == 'bricks' ) {
47 + if ( ! empty( $_GET['_breakdance_doing_ajax'] ) && get_template() == 'bricks' ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only Breakdance editor detection.
48 48 get_header();
49 49 }
50 50 $pre_content .= ultimate_post()->build_css_for_inline_print( $id, true );
51 51 }