Skip to content

Commit

Permalink
update changelog 9.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zubairraeen committed Apr 25, 2024
1 parent 66e75d3 commit 00db07f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
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

0 comments on commit 00db07f

Please sign in to comment.