From 6beb1c2251b32dd34addf916b2251f51e3a6470f Mon Sep 17 00:00:00 2001 From: Ruben Ramirez Date: Thu, 3 Apr 2025 19:08:41 -0500 Subject: [PATCH] Fix activation errors and address initial TODOs - Resolved fatal errors during plugin activation related to Composer autoloading, procedural function loading ('\die' vs 'die'), and 'dbDelta' SQL formatting. - Defined and documented required post meta fields in 'memory-bank/project-knowledge/meta-fields.md'. - Implemented logic for custom columns in 'AdminListTables.php' using defined meta keys. - Made assessment title dynamic in 'assessment-shell.php'. - Implemented check for pre-screening status in 'FrontendHandler.php'. - Replaced placeholder or future implementation TODOs with descriptive notes in core plugin file, settings page, AJAX handler, frontend handler, credits, and payments files. --- public/templates/assessment-shell.php | 4 +- quiztech-assessment-platform.php | 3 +- src/Admin/AdminListTables.php | 8 ++-- src/Admin/SettingsPage.php | 4 +- src/Includes/Ajax/AssessmentAjaxHandler.php | 3 +- src/Includes/FrontendHandler.php | 19 ++++---- src/Includes/credits.php | 15 +++---- src/Includes/payments.php | 49 +++++++++++++-------- 8 files changed, 57 insertions(+), 48 deletions(-) diff --git a/public/templates/assessment-shell.php b/public/templates/assessment-shell.php index 8debb8e..cf85986 100644 --- a/public/templates/assessment-shell.php +++ b/public/templates/assessment-shell.php @@ -34,7 +34,7 @@ if ( ! $invitation_data || ! $current_step ) { - <?php esc_html_e( 'Assessment', 'quiztech' ); // TODO: Make title dynamic ?> + <?php echo esc_html( get_the_title( $invitation_data->assessment_id ) ?: __( 'Assessment', 'quiztech' ) ); ?>