Skip to content

Commit

Permalink
Merge pull request #101 from philbuchanan/#100
Browse files Browse the repository at this point in the history
Return defaults if none set for accordion_blocks_defaults setting (#100)
  • Loading branch information
philbuchanan authored Dec 10, 2020
2 parents 5c2ad12 + 0b64210 commit 46dadd2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
11 changes: 9 additions & 2 deletions accordion-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Plugin Name: Accordion Blocks
* Plugin URI: https://github.com/philbuchanan/Accordion-Blocks
* Description: Gutenberg blocks for creating responsive accordion drop-downs.
* Version: 1.2.1
* Requires at least: 5.4
* Version: 1.2.2
* Requires at least: 5.5
* Author: Phil Buchanan
* Author URI: https://philbuchanan.com
* License: GPLv2 or later
Expand Down Expand Up @@ -151,6 +151,13 @@ public function register_settings() {
),
),
),
'default' => array(
'initiallyOpen' => false,
'clickToClose' => true,
'autoClose' => true,
'scroll' => false,
'scrollOffset' => 0,
),
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "accordion-blocks",
"version": "1.2.1",
"version": "1.2.2",
"description": "Gutenberg blocks for creating responsive accordion drop-downs.",
"main": "src/index.js",
"scripts": {
Expand Down
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Donate Link: https://philbuchanan.com/donate/
Tags: accordion, accordions, gutenberg, block, responsive
Requires at least: 5.5
Tested up to: 5.6
Stable tag: 1.2.1
Stable tag: 1.2.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -89,6 +89,9 @@ For bug reports or feature requests or if you'd like to contribute to the plugin
2. Accordion block in the editor

== Changelog ==
= 1.2.2 =
* Fixed: Unique IDs were not set for new accordion items for sites that didn't already have default options stored in the database.

= 1.2.1 =
* Fixed PHP error that slipped through.

Expand Down Expand Up @@ -149,6 +152,9 @@ For bug reports or feature requests or if you'd like to contribute to the plugin
* All new plugin to support the new WordPress Gutenberg editor.

== Upgrade Notice ==
= 1.2.2 =
* Fixed an issue where all accordion item titles would open the first accordion only.

= 1.2.1 =
Fixed PHP error that slipped through in 1.2.0. Sorry about that.

Expand Down

0 comments on commit 46dadd2

Please sign in to comment.