Skip to content

Commit

Permalink
Merge branch 'release/1.5.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
JiveDig committed May 5, 2023
2 parents ab16eb8 + 15f11db commit f7c341d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 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.5.1 (5/5/23)
* Fixed: Missing content on some post types when a TOC is not present.

## 1.5.0 (5/5/23)
* Changed: More efficient building of TOC and structuring the headings/markup.
* Fixed: Invalid markup in some scenarios.
Expand Down
2 changes: 1 addition & 1 deletion classes/class-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function filter_content( $content ) {

// Bail if no TOC.
if ( ! ( $this->has_toc || $this->has_block || $this->has_shortcode ) ) {
return;
return $content;
}

// Set it up.
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.5.0
* Version: 1.5.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.5.0' );
define( 'MAI_TABLE_OF_CONTENTS_VERSION', '1.5.1' );
}

// Plugin Folder Path.
Expand Down

0 comments on commit f7c341d

Please sign in to comment.