tcpdf - 6.6.2
LearnDash 4.5.2
File tcpdf/tcpdf.php
Function: getHtmlDomArray()
Description of changes: Added condition wrapper around line 16516 to prevent replacing multiple spaces with a single space.
Original:
$html = preg_replace('/'.$this->re_space['p'].'+/'.$this->re_space['m'], chr(32), $html); // replace multiple spaces with a single space
Changed:
if ( ( ! defined( 'LEARNDASH_TCPDF_LEGACY_LD322' ) ) || ( true !== LEARNDASH_TCPDF_LEGACY_LD322 ) ) {
$html = preg_replace('/'.$this->re_space['p'].'+/'.$this->re_space['m'], chr(32), $html); // replace multiple spaces with a single space
}
File tcpdf/tcpdf.php
Function: getHTMLUnitToUnits()
Description of changes: Added condition wrapper around lines 20468-20472.
Original:
if ($points) {
$k = 1;
} else {
$k = $this->k;
}
Changed:
if ( ( ! defined( 'LEARNDASH_TCPDF_LEGACY_LD322' ) ) || ( true !== LEARNDASH_TCPDF_LEGACY_LD322 ) ) {
if ($points) {
$k = 1;
} else {
$k = $this->k;
}
}
File: tcpdf/tcpdf.php
Function: getHtmlDomArray()
Description of changes: Added condition wrapper around lines 16777.
Original:
$dom[$key]['line-height'] = (($dom[$key]['line-height'] - $this->cell_padding['T'] - $this->cell_padding['B']) / $dom[$key]['fontsize']);
Changed:
if ( ( ! defined( 'LEARNDASH_TCPDF_LEGACY_LD322' ) ) || ( true !== LEARNDASH_TCPDF_LEGACY_LD322 ) ) {
$dom[$key]['line-height'] = (($dom[$key]['line-height'] - $this->cell_padding['T'] - $this->cell_padding['B']) / $dom[$key]['fontsize']);
}
File: tcpdf/tcpdf.php
Function: getHtmlDomArray()
Description of changes: Changed line 16443 to remove invalid tags '