Skip to content

Commit 4e9ee4b

Browse files
committed
retain actions when using the classic editor plugin
1 parent d1e8bf7 commit 4e9ee4b

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
LifterLMS Blocks Changelog
22
==========================
33

4+
v1.1.1 - 2018-12-14
5+
-------------------
6+
7+
+ Fix issue causing LifterLMS Core Actions to be removed when using the Classic Editor plugin.
8+
9+
410
v1.1.0 - 2018-12-12
511
-------------------
612

includes/class-llms-blocks-migrate.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @package LifterLMS_Blocks/Classes
66
* @since 1.0.0
7-
* @version 1.1.0
7+
* @version 1.1.1
88
*/
99

1010
defined( 'ABSPATH' ) || exit;
@@ -139,11 +139,11 @@ public function migrate_post() {
139139
*
140140
* @return void
141141
* @since 1.1.0
142-
* @version 1.1.0
142+
* @version 1.1.1
143143
*/
144144
public function remove_template_hooks() {
145145

146-
if ( ! llms_parse_bool( get_post_meta( get_the_ID(), '_llms_blocks_migrated', true ) ) ) {
146+
if ( ! llms_parse_bool( get_post_meta( get_the_ID(), '_llms_blocks_migrated', true ) ) || 'classic-editor' === get_post_meta( get_the_ID(), 'classic-editor-remember', true ) ) {
147147
return;
148148
}
149149

lifterlms-blocks.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Plugin Name: LifterLMS Blocks
99
* Plugin URI: https://github.com/gocodebox/lifterlms-blocks
1010
* Description: WordPress Editor (Gutenberg) blocks for LifterLMS.
11-
* Version: 1.1.0
11+
* Version: 1.1.1
1212
* Author: LifterLMS
1313
* Author URI: https://lifterlms.com/
1414
* License: GPLv3
@@ -22,7 +22,7 @@
2222

2323
// Define Constants.
2424
if ( ! defined( 'LLMS_BLOCKS_VERSION' ) ) {
25-
define( 'LLMS_BLOCKS_VERSION', '1.1.0' );
25+
define( 'LLMS_BLOCKS_VERSION', '1.1.1' );
2626
}
2727

2828
/**

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lifterlms-blocks",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "blocks",
55
"author": "LifterLMS",
66
"homepage": "https://lifterlms.com/",

0 commit comments

Comments
 (0)