Skip to content

Commit

Permalink
Merge branch 'release/1.6.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
JiveDig committed Jan 10, 2024
2 parents c9a36b6 + d55ed20 commit c161510
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.6.1 (1/10/24)
* Fixed: PHP warning when during sanitization when label/hide/show text fields are empty.

## 1.6.0 (1/4/24)
* Added: New settings for TOC label and hide/show text.
* Fixed: Wrong font-weight name for the TOC toggle (now using normal instead of regular).
Expand Down
6 changes: 3 additions & 3 deletions classes/class-table-of-contents.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ function __construct( $args, $post_id = 0, $content = null ) {
'open' => rest_sanitize_boolean( $args['open'] ),
'headings' => absint( $args['headings'] ),
'style' => sanitize_html_class( $args['style'] ),
'label' => wp_kses_post( $args['label'] ),
'hide' => wp_kses_post( $args['hide'] ),
'show' => wp_kses_post( $args['show'] ),
'label' => wp_kses_post( (string) $args['label'] ), // Can't pass null.
'hide' => wp_kses_post( (string) $args['hide'] ), // Can't pass null.
'show' => wp_kses_post( (string) $args['show'] ), // Can't pass null.
'class' => esc_attr( $args['class'] ),
'align' => esc_attr( $args['align'] ),
];
Expand Down
4 changes: 2 additions & 2 deletions mai-table-of-contents.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Mai Table of Contents
* Plugin URI: https://bizbudding.com/mai-design-pack/
* Description: Automatically create a table of contents from headings in your posts.
* Version: 1.6.0
* Version: 1.6.1
*
* Author: BizBudding
* Author URI: https://bizbudding.com
Expand Down Expand Up @@ -92,7 +92,7 @@ public function __wakeup() {
private function setup_constants() {
// Plugin version.
if ( ! defined( 'MAI_TABLE_OF_CONTENTS_VERSION' ) ) {
define( 'MAI_TABLE_OF_CONTENTS_VERSION', '1.6.0' );
define( 'MAI_TABLE_OF_CONTENTS_VERSION', '1.6.1' );
}

// Plugin Folder Path.
Expand Down

0 comments on commit c161510

Please sign in to comment.