From b31ae338f85fc25c402ce595a263cbddf48f7e76 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Mon, 22 Jul 2024 15:01:22 +1200 Subject: [PATCH] 2024 Theme: Remove course average days for completion from sidebar Closes https://github.com/WordPress/Learn/issues/2695 --- .../pub/wporg-learn-2024/src/sidebar-meta-list/index.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/wp-content/themes/pub/wporg-learn-2024/src/sidebar-meta-list/index.php b/wp-content/themes/pub/wporg-learn-2024/src/sidebar-meta-list/index.php index 0770ccd8a..00238f6fa 100644 --- a/wp-content/themes/pub/wporg-learn-2024/src/sidebar-meta-list/index.php +++ b/wp-content/themes/pub/wporg-learn-2024/src/sidebar-meta-list/index.php @@ -63,9 +63,6 @@ function render( $attributes, $content, $block ) { // Get the average grade across all learners. $average_grade = round( $course_service->get_courses_average_grade( array( $course_id ) ), 0 ); - // Get the average number of days it takes to complete a course. - $average_days = $course_service->get_average_days_to_completion( array( $course_id ) ); - // Get the last updated time. $last_updated = get_last_updated_time( $course_id ); @@ -81,11 +78,6 @@ function render( $attributes, $content, $block ) { 'value' => $average_grade . '%', 'key' => 'average-grade', ), - array( - 'label' => __( 'Average days to completion', 'wporg-learn' ), - 'value' => $average_days, - 'key' => 'average-days', - ), array( 'label' => __( 'Last updated', 'wporg-learn' ), 'value' => $last_updated,