%2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } //// already escaped $time_string = sprintf( $time_string, esc_attr( get_the_date( DATE_W3C ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( DATE_W3C ) ), esc_html( get_the_modified_date() ) ); echo '' . esc_html__( 'Posted on', 'ba-tours-light' ) . ' '; //// already escaped echo $time_string; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo '';