Skip to content

Commit 9618967

Browse files
committed
Merge branch 'dev'
2 parents c266c05 + b9c9aa6 commit 9618967

File tree

5 files changed

+42
-24
lines changed

5 files changed

+42
-24
lines changed

includes/adminpages/course-outline/section-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<span class="dashicons dashicons-arrow-down-alt2" aria-hidden="true"></span>
4848
</button>
4949
</div>
50-
<button class="pmpro_section-toggle-button" aria-expanded="false" aria-label="<?php echo esc_attr__( 'Toggle section content', 'pmpro-courses' ); ?>">
50+
<button type="button" class="pmpro_section-toggle-button" aria-expanded="false" aria-label="<?php echo esc_attr__( 'Toggle section content', 'pmpro-courses' ); ?>">
5151
<span class="dashicons dashicons-arrow-down-alt2" aria-hidden="true"></span>
5252
<label for="pmpro_course_lessons_section_name_<?php echo esc_attr( $section_id ); ?>">
5353
<?php esc_html_e( 'Section Name', 'pmpro-courses' ); ?>

includes/progress.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,21 @@ public static function pmpro_courses_get_no_activity_courses_for_user( $user_id
216216
}
217217
} // End of class.
218218

219+
220+
/**
221+
* Display a button that allows a user to mark a lesson as complete.
222+
*
223+
* @deprecated 2.0 Use pmpro_courses_complete_lesson_button() instead.
224+
*
225+
* @param int $lid The lesson ID.
226+
* @param int $cid The course ID. Unused and kept only for backward compatibility.
227+
* @param int $user_id The user ID. Optional.
228+
*/
229+
function pmpro_courses_complete_button( $lid, $cid, $user_id = null ) {
230+
_deprecated_function( __FUNCTION__, '2.0', 'pmpro_courses_complete_lesson_button()' );
231+
return pmpro_courses_complete_lesson_button( $lid, $user_id );
232+
}
233+
219234
/**
220235
* Display a button that allows a user to mark a lesson as complete or show completed if the lesson is completed.
221236
*/

package-lock.json

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pmpro-courses.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Paid Memberships Pro - Courses for Membership Add On
44
* Plugin URI: https://www.paidmembershipspro.com/add-ons/pmpro-courses-lms-integration/
55
* Description: Create courses and lessons for members. Integrates LMS plugins with Paid Memberships Pro.
6-
* Version: 2.0
6+
* Version: 2.0.1
77
* Author: Paid Memberships Pro
88
* Author URI: https://www.paidmembershipspro.com
99
* Text Domain: pmpro-courses
@@ -13,7 +13,7 @@
1313

1414
defined( 'ABSPATH' ) || die( 'File cannot be accessed directly' );
1515

16-
define( 'PMPRO_COURSES_VERSION', '2.0' );
16+
define( 'PMPRO_COURSES_VERSION', '2.0.1' );
1717
define( 'PMPRO_COURSES_DIR', dirname( __FILE__ ) );
1818
define( 'PMPRO_COURSES_BASENAME', plugin_basename( __FILE__ ) );
1919
define( 'PMPRO_COURSES_URL', plugin_dir_url( __FILE__ ) );

readme.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Contributors: strangerstudios, paidmembershipspro, kimannwall, jarryd-long
33
Tags: course, education, elearning, lms, membership, pmpro
44
Requires at least: 5.4
55
Tested up to: 6.9
6-
Stable tag: 2.0
7-
Requires PHP: 7.0
6+
Stable tag: 2.0.1
7+
Requires PHP: 7.4
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -135,7 +135,10 @@ Please visit [our support site at https://www.paidmembershipspro.com](http://www
135135
4. A course page on the site frontend showing overview content, a registration box with required levels, and a list of lessons.
136136

137137
== Changelog ==
138-
= 2.0 - 2026-02-27 =
138+
= 2.0.1 - 2026-03-20 =
139+
* BUG FIX: Fixed an issue where course sections were not correctly working while using the Classic Editor. (@andrewlimaza)
140+
141+
= 2.0 - 2026-02-26 =
139142
* ENHANCEMENT: Reworked the plugin to support sectioned content and rehauled the lesson management and progress for future development and improvements.
140143
* ENHANCEMENT: Added "Courses" to the Edit Member panel to see all courses a member is enrolled in (has access) and their progress.
141144
* ENHANCEMENT: Moved progress tracking to custom tables instead for better performance. This will help improve future development. Progress will retroactively update for learners as they view course content.

0 commit comments

Comments
 (0)