Skip to content

Commit

Permalink
Updates to 4.24.3.1.24.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Woo committed Aug 23, 2024
1 parent 94952d7 commit 67bc4e9
Show file tree
Hide file tree
Showing 65 changed files with 87 additions and 79 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
*** Sensei Pro (WC Paid Courses) ***

2024-08-22 - version 4.24.3.1.24.1
* Sensei LMS: Version bump to 4.24.3 https://raw.githubusercontent.com/Automattic/sensei/version/4.24.3/changelog.txt

2024-08-08 - version 4.24.2.1.24.1
* Sensei LMS: Version bump to 4.24.2 https://raw.githubusercontent.com/Automattic/sensei/version/4.24.2/changelog.txt
* Sensei Pro: Version bump to 1.24.1
Expand Down
Empty file modified plugins/sensei-lms/assets/js/admin/meta-box-quiz-editor.js
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/assets/js/grading-general.js
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/assets/js/image-selectors.js
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/assets/js/learners-general.js
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/assets/js/ranges.js
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/assets/js/user-dashboard.js
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/assets/vendor/chosen/ajax-chosen.jquery.js
100755 → 100644
Empty file.
Empty file.
Empty file modified plugins/sensei-lms/assets/vendor/chosen/chosen-rtl.js
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/assets/vendor/chosen/chosen-rtl.min.js
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/assets/vendor/chosen/chosen.jquery.js
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/assets/vendor/chosen/chosen.jquery.min.js
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/assets/vendor/underscore/underscore-min.js
100755 → 100644
Empty file.
8 changes: 8 additions & 0 deletions plugins/sensei-lms/changelog.txt
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
*** Changelog ***

## 4.24.3 - 2024-08-22
### Fixed
- Ensure quiz description is displayed to the student [#7669](https://github.com/Automattic/sensei/pull/7669)
- Incorrect URL for edited emails [#7671](https://github.com/Automattic/sensei/pull/7671)
- Missing lesson status icon for "complete" status [#7667](https://github.com/Automattic/sensei/pull/7667)
- PHP deprecation notice when opening site editor [#7668](https://github.com/Automattic/sensei/pull/7668)
- Some reports not exporting all rows [#7670](https://github.com/Automattic/sensei/pull/7670)

## 4.24.2 - 2024-08-08
### Security
- Improve email templates security
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,16 @@ public function __construct() {
],
Sensei()->assets->src_path( 'blocks/quiz/question-block' )
);

Sensei_Blocks::register_sensei_block(
'sensei-lms/question-description',
[
'render_callback' => '__return_empty_string',
],
[],
Sensei()->assets->src_path( 'blocks/quiz/question-description-block' )
);

Sensei_Blocks::register_sensei_block(
'sensei-lms/question-answers',
[
'render_callback' => '__return_empty_string',
],
[],
Sensei()->assets->src_path( 'blocks/quiz/question-answers-block' )
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class Course_Navigation {
'not-started' => 'circle',
'in-progress' => 'half-filled-circle',
'ungraded' => 'half-filled-circle',
'complete' => 'check-filled-circle',
'completed' => 'check-filled-circle',
'failed' => 'half-filled-circle',
'locked' => 'lock',
Expand Down Expand Up @@ -95,7 +96,7 @@ public function render_course_navigation() {
$modules_html = implode(
'',
array_map(
function( $item ) {
function ( $item ) {
if ( 'module' === $item['type'] ) {
return $this->render_module( $item );
}
Expand All @@ -108,7 +109,7 @@ function( $item ) {
$lessons_html = implode(
'',
array_map(
function( $item ) {
function ( $item ) {
if ( 'lesson' === $item['type'] ) {
return $this->render_lesson( $item );
}
Expand Down Expand Up @@ -164,7 +165,7 @@ private function render_module( $module ) {
$lessons_html = implode(
'',
array_map(
function( $lesson ) {
function ( $lesson ) {
return $this->render_lesson( $lesson );
},
$lessons
Expand All @@ -175,7 +176,7 @@ function( $lesson ) {
$has_current_lesson = count(
array_filter(
$lessons,
function( $lesson ) use ( $current_lesson_id ) {
function ( $lesson ) use ( $current_lesson_id ) {
return $current_lesson_id === $lesson['id'];
}
)
Expand All @@ -186,7 +187,7 @@ function( $lesson ) use ( $current_lesson_id ) {
$quiz_count = count(
array_filter(
$lessons,
function( $lesson ) {
function ( $lesson ) {
return \Sensei_Lesson::lesson_quiz_has_questions( $lesson['id'] );
}
)
Expand Down
Empty file modified plugins/sensei-lms/includes/class-sensei-admin.php
100755 → 100644
Empty file.
10 changes: 6 additions & 4 deletions plugins/sensei-lms/includes/class-sensei-analysis-course-list-table.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ public function generate_report( $report ) {
$this->search = $search;

$args = array(
'number' => -1,
'offset' => 0,
'orderby' => $orderby,
'order' => $order,
Expand All @@ -347,12 +346,15 @@ public function generate_report( $report ) {

switch ( $this->view ) {
case 'user':
$this->items = $this->get_course_statuses( $args );
break;
$args['number'] = '';
$this->items = $this->get_course_statuses( $args );

break;
case 'lesson':
default:
$this->items = $this->get_lessons( $args );
$args['number'] = -1;
$this->items = $this->get_lessons( $args );

break;
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/sensei-lms/includes/class-sensei-analysis-lesson-list-table.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public function generate_report( $report ) {
$this->search = $search;

$args = array(
'number' => -1,
'number' => '',
'offset' => 0,
'orderby' => $orderby,
'order' => $order,
Expand Down
Empty file.
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-analysis.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-course-results.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-course.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-frontend.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-grading-main.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-grading-user-quiz.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-grading.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-learner-profiles.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-lesson.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-list-table.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-messages.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-posttypes.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-question.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-quiz.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-settings-api.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-settings.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-teacher.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/class-sensei-updates.php
100755 → 100644
Empty file.
3 changes: 2 additions & 1 deletion plugins/sensei-lms/includes/class-sensei-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -2917,8 +2917,9 @@ public static function is_teacher_archive_page() {
public static function output_query_params_as_inputs( array $excluded = [], string $url = '', bool $echo = true ) {
// phpcs:ignore WordPress.Security.NonceVerification -- The nonce should be checked before calling this method.
$query_params = $_GET;

if ( $url ) {
parse_str( wp_parse_url( $url, PHP_URL_QUERY ), $query_params );
parse_str( (string) wp_parse_url( $url, PHP_URL_QUERY ), $query_params );
}

$output = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ public function get_email_body( WP_Post $email_post, array $placeholders = [] ):
*/
private function replace_placeholders( string $content, array $placeholders ): string {
foreach ( $placeholders as $placeholder => $value ) {
$content = str_replace( '[' . $placeholder . ']', $value, $content );
// Strip out URL protocol if necessary. Partial solution for https://github.com/Automattic/sensei/issues/7621.
$content = preg_replace( '~(https?://)?\[' . $placeholder . '\]~', $value, $content );
}

return $content;
Expand Down
Empty file modified plugins/sensei-lms/includes/template-functions.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/theme-integrations/storefront.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/theme-integrations/twentyeleven.php
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified plugins/sensei-lms/includes/theme-integrations/twentytwelve.php
100755 → 100644
Empty file.
Empty file modified plugins/sensei-lms/includes/theme-integrations/underscores.php
100755 → 100644
Empty file.
Loading

0 comments on commit 67bc4e9

Please sign in to comment.