From 2b603c78143748d5ce90d5b709fd20e3f90d54fd Mon Sep 17 00:00:00 2001 From: ren Date: Wed, 11 Dec 2024 16:41:52 +0000 Subject: [PATCH] Learn: Sync with git WordPress/learn@e8734f1 git-svn-id: https://meta.svn.wordpress.org/sites/trunk@14267 74240141-8908-4e6f-9713-ba540dce6ec7 --- .../wp-content/themes/pub/wporg-learn-2024/inc/block-hooks.php | 3 +++ .../wp-content/themes/pub/wporg-learn-2024/style.css | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/inc/block-hooks.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/inc/block-hooks.php index 73b77ddeae..5f51defde1 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/inc/block-hooks.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/inc/block-hooks.php @@ -179,6 +179,9 @@ function update_quiz_actions( $block_content ) { function is_quiz_ungraded() { $lesson_id = Sensei_Utils::get_current_lesson(); $quiz_id = Sensei()->lesson->lesson_quizzes( $lesson_id ); + if ( ! $quiz_id ) { + return false; + } $user_id = get_current_user_id(); $quiz_progress = Sensei()->quiz_progress_repository->get( $quiz_id, $user_id ); diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/style.css b/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/style.css index fe0d582ec7..3d2d6e346e 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/style.css +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/style.css @@ -4,7 +4,7 @@ * Author: WordPress.org * Author URI: http://wordpress.org/ * Description: A theme for learn.wordpress.org, built in 2024. - * Version: 1.0.0-e7303ed + * Version: 1.0.0-813b159 * License: GNU General Public License v2 or later * License URI: http://www.gnu.org/licenses/gpl-2.0.html * Text Domain: wporg-learn