From bec75352a81cb39ff63487d176f807e3a4f293ee Mon Sep 17 00:00:00 2001 From: donnapep Date: Tue, 14 Jan 2025 13:40:40 +0000 Subject: [PATCH] deploy: e8bfc571d2759f0ba1919dc70b9cd457e233b4cc --- includes_class-sensei-course.php.html | 2 +- includes_class-sensei-lesson.php.html | 2 +- includes_class-sensei-modules.php.html | 4 ++-- includes_data-port_class-sensei-data-port-job.php.html | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes_class-sensei-course.php.html b/includes_class-sensei-course.php.html index 31b339c45f..1969dc1889 100644 --- a/includes_class-sensei-course.php.html +++ b/includes_class-sensei-course.php.html @@ -1573,7 +1573,7 @@

Source: includes/class-sensei-course.php

* @param {int} $height Requested image height. * @return {string} Course image HTML. */ - $img_html = apply_filters( 'sensei_course_placeholder_image_url', '<img src="//via.placeholder.com/' . $width . 'x' . $height . '" class="' . esc_attr( $classes ) . '" />', $course_id, $width, $height ); + $img_html = apply_filters( 'sensei_course_placeholder_image_url', '<img src="' . esc_url( Sensei()->assets->get_image( 'placeholder.png' ) ) . '" width="' . $width . '" height="' . $height . '" class="' . esc_attr( $classes ) . '" />', $course_id, $width, $height ); $used_placeholder = true; } diff --git a/includes_class-sensei-lesson.php.html b/includes_class-sensei-lesson.php.html index 889a83cdb0..e532393052 100644 --- a/includes_class-sensei-lesson.php.html +++ b/includes_class-sensei-lesson.php.html @@ -4002,7 +4002,7 @@

Source: includes/class-sensei-lesson.php

* @param {string} $html HTML for the lesson placeholder image. * @return {string} HTML for the lesson placeholder image. */ - $img_element = apply_filters( 'sensei_lesson_placeholder_image_url', '<img src="//via.placeholder.com/' . esc_url( $width ) . 'x' . esc_url( $height ) . '" class="woo-image thumbnail alignleft" />' ); + $img_element = apply_filters( 'sensei_lesson_placeholder_image_url', '<img src="' . esc_url( Sensei()->assets->get_image( 'placeholder.png' ) ) . '" width="' . $width . '" height="' . $height . '" class="woo-image thumbnail alignleft" />' ); } } diff --git a/includes_class-sensei-modules.php.html b/includes_class-sensei-modules.php.html index e5c8bbeee8..5255a2a233 100644 --- a/includes_class-sensei-modules.php.html +++ b/includes_class-sensei-modules.php.html @@ -764,8 +764,8 @@

Source: includes/class-sensei-modules.php

} } - // Encode and return results for processing & selection - echo json_encode( $found_courses ); + // Encode and return results for processing & selection. + echo wp_json_encode( $found_courses ); die(); } diff --git a/includes_data-port_class-sensei-data-port-job.php.html b/includes_data-port_class-sensei-data-port-job.php.html index efa4e5c369..23e52e6189 100644 --- a/includes_data-port_class-sensei-data-port-job.php.html +++ b/includes_data-port_class-sensei-data-port-job.php.html @@ -245,7 +245,7 @@

Source: includes/data-port/class-sensei-data-port-job.php public function get_logs() { usort( $this->logs, - function( $first_log, $second_log ) { + function ( $first_log, $second_log ) { // Get the type ordering and compare the two logs based on that. $log_order = $this->get_log_type_order(); @@ -547,7 +547,7 @@

Source: includes/data-port/class-sensei-data-port-job.php $move_new_file = @copy( $tmp_file, $file_save_path ); if ( 0 === strpos( $tmp_file, sys_get_temp_dir() ) ) { - unlink( $tmp_file ); + wp_delete_file( $tmp_file ); } if ( ! $move_new_file || ! file_exists( $file_save_path ) ) {