From 2df0d6f21eb26c0563716bdeefb5f75bf40a60e7 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Wed, 5 Jun 2024 11:36:04 +1200 Subject: [PATCH] 2024 Theme: Remove usage of deprecated SenseiUtils::user_started_course --- wp-content/plugins/wporg-learn/views/block-course-status.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/plugins/wporg-learn/views/block-course-status.php b/wp-content/plugins/wporg-learn/views/block-course-status.php index 962486c53..9262593bf 100644 --- a/wp-content/plugins/wporg-learn/views/block-course-status.php +++ b/wp-content/plugins/wporg-learn/views/block-course-status.php @@ -27,7 +27,7 @@ function render( $attributes, $content, $block ) { if ( $is_completed ) { $content = __( 'Completed', 'wporg-learn' ); - } elseif ( Sensei_Utils::user_started_course( $course_id, $user_id ) ) { + } elseif ( Sensei_Utils::has_started_course( $course_id, $user_id ) ) { $content = __( 'In progress', 'wporg-learn' ); } else { return '';