| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | defined( 'ABSPATH' ) || exit; |
| 3 | +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Included inside block render methods; variables are local. | |
| 3 | 4 | |
| 4 | 5 | $attr['titleTag'] = in_array( $attr['titleTag'], ultimate_post()->ultp_allowed_block_tags() ) ? $attr['titleTag'] : 'h3'; |
| 5 | 6 | $post_loop .= '<' . $attr['titleTag'] . ' class="ultp-block-title ' . ( $attr['titleStyle'] == 'none' ? '' : ' ultp-title-' . sanitize_html_class( $attr['titleStyle'] ) ) . '"><a href="' . $titlelink . '" ' . ( $attr['openInTab'] ? 'target="_blank"' : '' ) . '>' . esc_html( $title ) . '</a></' . $attr['titleTag'] . '>'; |