Skip to content

Commit 50a1979

Browse files
committed
Merge branch 'dev' into plugin-check-updates
2 parents f2befc3 + 79ce8b2 commit 50a1979

File tree

4 files changed

+149
-61
lines changed

4 files changed

+149
-61
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
significance: minor
2+
type: fixed
3+
links:
4+
- "#2672"
5+
entry: Removes use of deprecated mb_convert_encoding().

.wordpress-org/readme/05-description.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
== Description ==
22
LifterLMS is a secure easy-to-use WordPress LMS plugin packed with features to easily create & sell courses online.
33

4-
**[Download the LifterLMS plugin for free here](https://lifterlms.com/free/?utm_source=LifterLMS%20Plugin&utm_medium=README&utm_campaign=Readme%20to%20Sale)** directly from our website so you get instant access to all our valuable resources to help you get started quickly and easily for free.
5-
64
Turn your WordPress website into a professional eLearning platform with every customizable feature you could possibly need from your LMS.
75

86
+ **Intuitive LMS Course Builder:** Create Courses, Sections, and Interactive Lessons with multimedia content.
@@ -303,14 +301,15 @@ Connect LifterLMS to over 7,000 other apps like Facebook, Google Sheets, Zoom, S
303301

304302
Save money and get more features.
305303

306-
+ [Free LifterLMS plan](https://lifterlms.com/free/?utm_source=LifterLMS%20Plugin&utm_medium=README&utm_campaign=Readme%20to%20Sale) gives you everything you need to start with all the essential LMS features from unlimited courses, memberships, students, teachers, and more.
304+
+ Free LifterLMS plan gives you everything you need to start with all the essential LMS features from unlimited courses, memberships, students, teachers, and more.
307305
+ [Earth Bundle](https://lifterlms.com/product/earth-bundle/?utm_source=LifterLMS%20Plugin&utm_medium=README&utm_campaign=Readme%20to%20Sale) gives you all the essentials you need to get your online learning website up and running so it's collecting money today with the most powerful secure learning management system software.
308306
+ Level up your online course LMS website with our ecommerce, design, marketing technology, and automation tools with the [Universe Bundle](https://lifterlms.com/product/universe-bundle/?utm_source=LifterLMS%20Plugin&utm_medium=README&utm_campaign=Readme%20to%20Sale).
309307
+ Add more engagement and student transformation potential to your immersive training programs with our entire suite of products including advanced features used by the best teachers, experts, and coaches with the [Infinity Bundle](https://lifterlms.com/product/infinity-bundle/?utm_source=LifterLMS%20Plugin&utm_medium=README&utm_campaign=Readme%20to%20Sale).
310308

311309
### Try the Best LMS Plugin
312310

313-
+ [Install the free core LifterLMS plugin right now](https://lifterlms.com/free/?utm_source=LifterLMS%20Plugin&utm_medium=README&utm_campaign=Readme%20to%20Sale). See how extensive and customizable our free core plugin is.
311+
+ Install the free core LifterLMS plugin right now. See how extensive and customizable our free core plugin is.
312+
314313
+ Get a temporary _30 Day_ website on our servers with the core LifterLMS plugin AND all the premium add-ons installed. This demo website allows you to test drive all the LMS add-ons before you invest. Practice creating courses, test out the learner experience, and see how easy it will be to manage your course with WordPress. Install your favorite plugins & themes to test compatibility. **[Try LifterLMS for $1](https://lifterlms.com/try/?utm_source=LifterLMS%20Plugin&utm_medium=README&utm_campaign=Readme%20to%20Sale)** now.
315314
+ Test LifterLMS as a student. Take a **free** course on how to build a LifterLMS website in 20 minutes. [Take a Free Course](https://academy.lifterlms.com/course/how-to-build-a-learning-management-system-with-lifterlms/?utm_source=LifterLMS%20Plugin&utm_medium=README&utm_campaign=Readme%20to%20Sale) now.
316315

@@ -365,7 +364,7 @@ Want to add a new language to LifterLMS? Contribute language translations at [tr
365364

366365
### What Should You Do Next?
367366

368-
**[Install the free LifterLMS plugin on your website](https://lifterlms.com/free/?utm_source=LifterLMS%20Plugin&utm_medium=README&utm_campaign=Readme%20to%20Sale)**,
367+
**Install the free LifterLMS plugin on your website**,
369368

370369
then ...
371370

includes/class-llms-dom-document.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,16 @@ public function dom() {
126126
}
127127

128128
/**
129-
* Load the HTML string in the DOMDocument using mb_convert_econding
129+
* Load the HTML string in the DOMDocument using mb_encode_numericentity
130130
*
131131
* @since 4.13.0
132+
* @since [version] Use `mb_encode_numericentity()` instead of deprecated `mb_convert_encoding()` with 'HTML-ENTITIES'.
132133
*
133134
* @return void
134135
*/
135136
private function load_with_mb_convert_encoding() {
136-
if ( ! $this->dom->loadHTML( mb_convert_encoding( $this->source, 'HTML-ENTITIES', 'UTF-8' ) ) ) {
137+
$html = mb_encode_numericentity( $this->source, array( 0x80, 0x10FFFF, 0, 0x1FFFFF ), 'UTF-8' );
138+
if ( ! $this->dom->loadHTML( $html ) ) {
137139
$this->error = new WP_Error( 'llms-dom-document-error', __( 'DOMDocument XML Error encountered.', 'lifterlms' ), libxml_get_errors() );
138140
}
139141
}

0 commit comments

Comments
 (0)