PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | inc/libraries/class-emogrifier.php +7 -10 4.1.74.4.8 View file →
@@ -6,8 +6,9 @@
6 6 *
7 7 * @author Cameron Brooks
8 8 * @author Jaime Prado
9 9 * @author Roman O�ana <ozana@omdesign.cz>
10 + * @deprecated v4.2.9.1
10 11 */
11 12 if(!class_exists('Emogrifier')) {
12 13 class Emogrifier {
13 14 /**
@@ -529,13 +530,9 @@
529 530 } else {
530 531 $bodyWithoutUnprocessableTags = $this->html;
531 532 }
532 533
533 - if ( function_exists( 'mb_convert_encoding' ) ) {
534 - return mb_convert_encoding( $bodyWithoutUnprocessableTags, 'HTML-ENTITIES', self::ENCODING );
535 - } else {
536 - return htmlspecialchars_decode( utf8_decode( htmlentities( $bodyWithoutUnprocessableTags, ENT_COMPAT, self::ENCODING, false ) ) );
537 - }
534 + return htmlspecialchars_decode( utf8_decode( htmlentities( $bodyWithoutUnprocessableTags, ENT_COMPAT, self::ENCODING, false ) ) );
538 535 }
539 536
540 537 /**
541 538 * @param array $a
@@ -666,12 +663,12 @@
666 663 * @return string
667 664 */
668 665 private function matchClassAttributes( array $match ) {
669 666 return ( strlen( $match[1] ) ? $match[1] : '*' ) . '[contains(concat(" ",@class," "),concat(" ","' .
670 - implode(
671 - '"," "))][contains(concat(" ",@class," "),concat(" ","',
672 - explode( '.', substr( $match[2], 1 ) )
673 - ) . '"," "))]';
667 + implode(
668 + '"," "))][contains(concat(" ",@class," "),concat(" ","',
669 + explode( '.', substr( $match[2], 1 ) )
670 + ) . '"," "))]';
674 671 }
675 672
676 673 /**
677 674 * @param array $match
@@ -791,5 +788,5 @@
791 788
792 789 return $properties;
793 790 }
794 791 }
795 -}
792 +}