| @@ -1,6 +1,7 @@ | ||
| 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 | global $post; |
| 5 | 6 | $post_id = get_the_ID(); |
| 6 | 7 | $title = esc_html( wp_trim_words( get_the_title( $post_id ), $attr['titleLength'] ? $attr['titleLength'] : 100 ) ); |
| @@ -15,6 +16,5 @@ | ||
| 15 | 16 | $view = get_post_meta( get_the_ID(), '__post_views_count', true ); |
| 16 | 17 | $post_time = human_time_diff( get_the_time( 'U' ), current_time( 'U' ) ); |
| 17 | 18 | $word_read = apply_filters( 'ultp_word_read_min', 1200 ); |
| 18 | 19 | $reading_time = ceil( mb_strlen( wp_strip_all_tags( get_the_content() ) ) / $word_read ) . ( isset( $attr['metaMinText'] ) ? ' ' . wp_kses( $attr['metaMinText'], ultimate_post()->ultp_allowed_html_tags() ) : '' ); |
| 19 | -$is_active = ultimate_post()->is_lc_active(); | |
| 20 | 20 | $post_video = isset( $attr['vidIconEnable'] ) && $attr['vidIconEnable'] ? get_post_meta( $post_id, '__builder_feature_video', true ) : ''; |