Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update changelog 9.0.1 #2530

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions blocks/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,25 +108,25 @@ private function qsm_block_register_legacy() {
* Get hierarchical qsm_category
*/
private function hierarchical_qsm_category( $cat = 0 ) {
$category = [];
$next = get_categories( array(
'taxonomy' => 'qsm_category',
'hide_empty' => false,
'hierarchical' => true,
'orderby' => 'name',
'order' => 'ASC',
'parent' => $cat,
) );

if ( $next ) {
foreach ( $next as $cat ) {
$cat->name = $cat->cat_name;
$cat->id = $cat->term_id;
$cat->children = $this->hierarchical_qsm_category( $cat->term_id );
$category[] = $cat;
$category = [];
$next = get_categories( array(
'taxonomy' => 'qsm_category',
'hide_empty' => false,
'hierarchical' => true,
'orderby' => 'name',
'order' => 'ASC',
'parent' => $cat,
) );

if ( $next ) {
foreach ( $next as $cat ) {
$cat->name = $cat->cat_name;
$cat->id = $cat->term_id;
$cat->children = $this->hierarchical_qsm_category( $cat->term_id );
$category[] = $cat;
}
}
}
return $category;
return $category;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion php/admin/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function qsm_add_author_column_in_db() {
$query = "ALTER TABLE $table CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;";
$result = $wpdb->query($query);

if ( $result === false ) {
if ( ! $result ) {
$success = false;
$mlwQuizMasterNext->log_manager->add( 'Error updating column charset utf8mb4_unicode_ci', "Tried $query but got {$wpdb->last_error}.", 0, 'error' );
}
Expand Down
10 changes: 6 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,12 @@ This is usually a theme conflict. You can [checkout out our common conflict solu
18. Database

== Changelog ==
= 9.0.1 (April 08, 2024) =
* Bug: Fixed date formate with %ANSWER_X% variable
* Bug: Fixed PHP warning with Quiz Block editor
* Enhancement: Checked compatibility with WordPress 6.5
= 9.0.1 (April 25, 2024) =
* Bug: Fixed date format in %ANSWER_X% variable
* Bug: Resolved PHP warning in Quiz Block editor
* Bug: Fixed an issue in showing the correct answers in a quiz while using random answers
* Enhancement: Improved text feature to accept other language characters in quiz page names
* Enhancement: Added support for using emojis in quiz questions, result pages, and email templates

= 9.0.0 (March 27, 2024) =
* Feature: Implemented a minimum length requirement for text-based question types
Expand Down
Loading