From cb3ea7129b8f99937dff5ae5db81d59c7506e3f3 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Mon, 26 Aug 2024 13:44:40 +1200 Subject: [PATCH] Theme: Fix aria-label on passed lessons in course outline --- wp-content/themes/pub/wporg-learn-2024/inc/block-hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-content/themes/pub/wporg-learn-2024/inc/block-hooks.php b/wp-content/themes/pub/wporg-learn-2024/inc/block-hooks.php index e384201b1..cad3a7afb 100644 --- a/wp-content/themes/pub/wporg-learn-2024/inc/block-hooks.php +++ b/wp-content/themes/pub/wporg-learn-2024/inc/block-hooks.php @@ -92,7 +92,7 @@ function update_course_outline_block_add_aria( $block_content, $block ) { $label = ''; while ( $html->next_tag( array( 'class_name' => 'wp-block-sensei-lms-course-outline-lesson' ) ) ) { - if ( $html->has_class( 'is-complete' ) ) { + if ( $html->has_class( 'is-complete' ) || $html->has_class( 'is-passed' ) ) { $label = __( 'Completed', 'wporg-learn' ); } else if ( $html->has_class( 'is-in-progress' ) ) { $label = __( 'In progress', 'wporg-learn' );