Skip to content

Commit

Permalink
deploy: e8bfc57
Browse files Browse the repository at this point in the history
  • Loading branch information
donnapep committed Jan 14, 2025
1 parent 167695f commit bec7535
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion includes_class-sensei-course.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@ <h1 class="page-title">Source: includes/class-sensei-course.php</h1>
* @param {int} $height Requested image height.
* @return {string} Course image HTML.
*/
$img_html = apply_filters( 'sensei_course_placeholder_image_url', '&lt;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', '&lt;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;

}
Expand Down
2 changes: 1 addition & 1 deletion includes_class-sensei-lesson.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -4002,7 +4002,7 @@ <h1 class="page-title">Source: includes/class-sensei-lesson.php</h1>
* @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', '&lt;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', '&lt;img src="' . esc_url( Sensei()->assets->get_image( 'placeholder.png' ) ) . '" width="' . $width . '" height="' . $height . '" class="woo-image thumbnail alignleft" />' );

}
}
Expand Down
4 changes: 2 additions & 2 deletions includes_class-sensei-modules.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -764,8 +764,8 @@ <h1 class="page-title">Source: includes/class-sensei-modules.php</h1>
}
}

// Encode and return results for processing &amp; selection
echo json_encode( $found_courses );
// Encode and return results for processing &amp; selection.
echo wp_json_encode( $found_courses );
die();
}

Expand Down
4 changes: 2 additions & 2 deletions includes_data-port_class-sensei-data-port-job.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ <h1 class="page-title">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();
Expand Down Expand Up @@ -547,7 +547,7 @@ <h1 class="page-title">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 ) ) {
Expand Down

0 comments on commit bec7535

Please sign in to comment.