Skip to content

Commit 44939d7

Browse files
committed
build: 1.7.0
1 parent d4ae0c2 commit 44939d7

21 files changed

+46
-46
lines changed

includes/blocks/class-llms-blocks-lesson-progression-block.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @package LifterLMS_Blocks/Blocks
66
*
77
* @since 1.0.0
8-
* @version [version]
8+
* @version 1.7.0
99
*
1010
* @render_hook llms_lesson-progression-block_render
1111
*/
@@ -17,7 +17,7 @@
1717
*
1818
* @since 1.0.0
1919
* @since 1.1.0 Unknown
20-
* @since [version] Don't output an empty render message for free lessons.
20+
* @since 1.7.0 Don't output an empty render message for free lessons.
2121
*/
2222
class LLMS_Blocks_Lesson_Progression_Block extends LLMS_Blocks_Abstract_Block {
2323

@@ -53,7 +53,7 @@ public function add_hooks( $attributes = array(), $content = '' ) {
5353
/**
5454
* Output a message when no HTML was rendered
5555
*
56-
* @since [version]
56+
* @since 1.7.0
5757
*
5858
* @return string
5959
*/

includes/class-llms-blocks-migrate.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Handle post migration to the block editor.
1515
*
1616
* @since 1.0.0
17-
* @since [version] Perform migrations on `current_screen` instead of `admin_enqueue_scripts`.
17+
* @since 1.7.0 Perform migrations on `current_screen` instead of `admin_enqueue_scripts`.
1818
* Migrate membership post types to use pricing table blocks.
1919
*/
2020
class LLMS_Blocks_Migrate {
@@ -24,7 +24,7 @@ class LLMS_Blocks_Migrate {
2424
*
2525
* @since 1.0.0
2626
* @since 1.4.0 Add action for unmigrating posts from the Tools & Utilities status screen.
27-
* @since [version] Perform migrations on `current_screen` instead of `admin_enqueue_scripts`.
27+
* @since 1.7.0 Perform migrations on `current_screen` instead of `admin_enqueue_scripts`.
2828
*/
2929
public function __construct() {
3030

@@ -84,7 +84,7 @@ public static function check_sales_page( $ret, $post_id ) {
8484
* Get an array of post types which can be migrated.
8585
*
8686
* @since 1.3.3
87-
* @since [version] Memberships are migrateable.
87+
* @since 1.7.0 Memberships are migrateable.
8888
*
8989
* @return array
9090
*/
@@ -123,7 +123,7 @@ public function get_migrated_posts( $args = array() ) {
123123
* Retrieve the block template by post type.
124124
*
125125
* @since 1.0.0
126-
* @since [version] Add membership template.
126+
* @since 1.7.0 Add membership template.
127127
*
128128
* @param string $post_type wp post type.
129129
* @return string
@@ -184,7 +184,7 @@ private function get_template( $post_type ) {
184184
*
185185
* @since 1.0.0
186186
* @since 1.4.0 Moves content updating methods to it's own function.
187-
* @since [version] Add Membership post type support.
187+
* @since 1.7.0 Add Membership post type support.
188188
* Update to handle being triggered by hook `current_screen` instead of `admin_enqueue_scripts`.
189189
*
190190
* @return void

includes/class-llms-blocks-post-types.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @package LifterLMS_Blocks/Main
66
*
77
* @since 1.0.0
8-
* @version [version]
8+
* @version 1.7.0
99
*/
1010

1111
defined( 'ABSPATH' ) || exit;
@@ -15,7 +15,7 @@
1515
*
1616
* @since 1.0.0
1717
* @since 1.5.2 Only `show_in_rest` for authenticated users with the `lifterls_instructor` capability.
18-
* @since [version] Add membership categories and tags to WordPress REST API.
18+
* @since 1.7.0 Add membership categories and tags to WordPress REST API.
1919
* Add membership post type editor template.
2020
*/
2121
class LLMS_Blocks_Post_Types {
@@ -24,7 +24,7 @@ class LLMS_Blocks_Post_Types {
2424
* Constructor
2525
*
2626
* @since 1.0.0
27-
* @since [version] Add membership categories and tags to WordPress REST API.
27+
* @since 1.7.0 Add membership categories and tags to WordPress REST API.
2828
* Add membership post type editor template.
2929
*
3030
* @return void
@@ -102,7 +102,7 @@ public function add_course_template( $post_type ) {
102102
/**
103103
* Add an editor template for memberships.
104104
*
105-
* @since [version]
105+
* @since 1.7.0
106106
*
107107
* @param array $post_type Post type registration data.
108108
* @return array

lifterlms-blocks.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
// Define Constants.
2727
if ( ! defined( 'LLMS_BLOCKS_VERSION' ) ) {
28-
define( 'LLMS_BLOCKS_VERSION', '1.6.0' );
28+
define( 'LLMS_BLOCKS_VERSION', '1.7.0' );
2929
}
3030

3131
/**

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.6.0",
3+
"version": "1.7.0",
44
"description": "blocks",
55
"author": "LifterLMS",
66
"homepage": "https://lifterlms.com/",

src/block-visibility/inspect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @since 1.0.0
55
* @since 1.6.0 Import `InspectorControls` from `wp.blockEditor` in favor of deprecated `wp.editor`
6-
* @since [version] Import `InspectorControls` from `wp.blockEditor` and fallback to `wp.editor` to maintain backwards compatibility.
6+
* @since 1.7.0 Import `InspectorControls` from `wp.blockEditor` and fallback to `wp.editor` to maintain backwards compatibility.
77
* @version 1.6.0
88
*/
99

src/blocks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @since 1.0.0
55
* @since 1.5.0 Register blocks conditionally based on post type.
66
* @since 1.6.0 Register form field blocks.
7-
* @since [version] Refactor into multiple files for clarity and organization.
7+
* @since 1.7.0 Refactor into multiple files for clarity and organization.
88
*/
99

1010
// Internal Deps.

src/blocks/course-information/inspect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @since 1.0.0
55
* @since 1.6.0 Import `InspectorControls` from `wp.blockEditor` in favor of deprecated `wp.editor`
6-
* @since [version] Import `InspectorControls` from `wp.blockEditor` and fallback to `wp.editor` to maintain backwards compatibility.
6+
* @since 1.7.0 Import `InspectorControls` from `wp.blockEditor` and fallback to `wp.editor` to maintain backwards compatibility.
77
* @version 1.6.0
88
*/
99

src/blocks/course-syllabus/inspect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @since 1.0.0
55
* @since 1.6.0 Import `InspectorControls` from `wp.blockEditor` in favor of deprecated `wp.editor`
6-
* @since [version] Import `InspectorControls` from `wp.blockEditor` and fallback to `wp.editor` to maintain backwards compatibility.
6+
* @since 1.7.0 Import `InspectorControls` from `wp.blockEditor` and fallback to `wp.editor` to maintain backwards compatibility.
77
* @version 1.6.0
88
*/
99

src/blocks/form-fields/field.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Generic Field component
33
*
44
* @since 1.6.0
5-
* @since [version] Fall back to `wp.editor` for `RichText` import when `wp.blockEditor` is not found.
5+
* @since 1.7.0 Fall back to `wp.editor` for `RichText` import when `wp.blockEditor` is not found.
66
* @version 1.6.0
77
*/
88

src/blocks/form-fields/inspect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Inspector settings for the Course Information Block.
33
*
44
* @since 1.6.0
5-
* @since [version] Import from `wp.editor` when `wp.blockEditor` is not available.
5+
* @since 1.7.0 Import from `wp.editor` when `wp.blockEditor` is not available.
66
* @version 1.6.0
77
*/
88

src/blocks/form-fields/settings.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Default settings for registering a field block.
33
*
44
* @since 1.6.0
5-
* @version [version]
5+
* @version 1.7.0
66
*/
77

88
// WP Deps.
@@ -166,7 +166,7 @@ const settings = {
166166
* The "edit" property must be a valid function.
167167
*
168168
* @since 1.6.0
169-
* @since [version] Backwards compatibility fixes for WP Core 5.2 and earlier.
169+
* @since 1.7.0 Backwards compatibility fixes for WP Core 5.2 and earlier.
170170
*
171171
* @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/
172172
*

src/blocks/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* LifterLMS Block Library.
33
*
4-
* @since [version]
5-
* @version [version]
4+
* @since 1.7.0
5+
* @version 1.7.0
66
*/
77

88
// WP Deps.
@@ -34,7 +34,7 @@ import * as formFields from './form-fields/';
3434
* Deregister all blocks no on a whitelist on the forms post type.
3535
*
3636
* @since 1.6.0
37-
* @since [version] Block 'llms/form-field-redeem-voucher' only available on registration forms.
37+
* @since 1.7.0 Block 'llms/form-field-redeem-voucher' only available on registration forms.
3838
*
3939
* @return {void}
4040
*/
@@ -43,7 +43,7 @@ export const deregisterBlocksForForms = () => {
4343
/**
4444
* Determine if a block should be deregistered from form posts.
4545
*
46-
* @since [version]
46+
* @since 1.7.0
4747
*
4848
* @param {String} name Block name.
4949
* @return {Boolean}

src/dom-ready/forms-ready.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* DOM Ready Events for LifterLMS Forms (llms_forms) Post Type
33
*
4-
* @since [version]
5-
* @version [version]
4+
* @since 1.7.0
5+
* @version 1.7.0
66
*/
77

88
// WP Deps.
@@ -29,7 +29,7 @@ import { getBlocksFlat } from '../util/';
2929
*
3030
* Because forms don't have drafts.
3131
*
32-
* @since [version]
32+
* @since 1.7.0
3333
*
3434
* @return {void}
3535
*/
@@ -58,7 +58,7 @@ const hideDraftButton = () => {
5858
*
5959
* Watches editor data and if the field is removed throw an error notice.
6060
*
61-
* @since [version]
61+
* @since 1.7.0
6262
*
6363
* @return {void}
6464
*/
@@ -109,7 +109,7 @@ const ensureEmailFieldExists = () => {
109109
/**
110110
* Default Function, runs all methods and events.
111111
*
112-
* @since [version]
112+
* @since 1.7.0
113113
*
114114
* @return {void}
115115
*/

src/dom-ready/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* Handle DOM Ready Events.
33
*
4-
* @since [version]
5-
* @version [version]
4+
* @since 1.7.0
5+
* @version 1.7.0
66
*/
77

88
// WP Deps.
@@ -18,7 +18,7 @@ import { getCurrentPostType } from '../util/';
1818
* On editor DOM ready.
1919
*
2020
* @since 1.6.0
21-
* @since [version] Refactor for simplicity.
21+
* @since 1.7.0 Refactor for simplicity.
2222
*
2323
* @return {void}
2424
*/

src/formats/merge-codes/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @link https://developer.wordpress.org/block-editor/tutorials/format-api/
55
*
66
* @since 1.6.0
7-
* @since [version] Import from `wp.editor` when `wp.blockEditor` is not available.
7+
* @since 1.7.0 Import from `wp.editor` when `wp.blockEditor` is not available.
88
* @version 1.6.0
99
*/
1010

src/sidebar/form-document-settings/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Displays only on `llms_form` post types.
55
*
66
* @since 1.6.0
7-
* @version [version]
7+
* @version 1.7.0
88
*/
99

1010
// WP Deps.
@@ -40,7 +40,7 @@ window.llms.plugins.LLMSFormDocSettings = LLMSFormDocSettings;
4040
* Render the "Form Settings" metabox in the "PluginDocumentSettingPanel" slot.
4141
*
4242
* @since 1.6.0
43-
* @since [version] Return early during renders on WP Core 5.2 and earlier where the `PluginDocumentSettingPanel` doesn't exist.
43+
* @since 1.7.0 Return early during renders on WP Core 5.2 and earlier where the `PluginDocumentSettingPanel` doesn't exist.
4444
*/
4545
class FormDocumentSettings extends Component {
4646

@@ -59,7 +59,7 @@ class FormDocumentSettings extends Component {
5959
* Render the Sidebar.
6060
*
6161
* @since 1.6.0
62-
* @since [version] Add early return for WP Core 5.2 and earlier where the `PluginDocumentSettingPanel` doesn't exist.
62+
* @since 1.7.0 Add early return for WP Core 5.2 and earlier where the `PluginDocumentSettingPanel` doesn't exist.
6363
* Add link to form location on frontend if available.
6464
*
6565
* @return {Fragment}
@@ -139,7 +139,7 @@ class FormDocumentSettings extends Component {
139139
* Retrieve custom meta information when retrieving posts.
140140
*
141141
* @since 1.6.0
142-
* @since [version] Retrieve form link attribute.
142+
* @since 1.7.0 Retrieve form link attribute.
143143
*/
144144
const applyWithSelect = withSelect( ( select ) => {
145145
const {

src/util/get-blocks-flat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const flattenBlocks = ( blocks ) => {
3939
* Retrieve an array of flattened blocks from the block editor.
4040
*
4141
* @since 1.6.0
42-
* @since [version] Backwards compat fix: fallback to `core/editor` if `core/block-editor` isn't available
42+
* @since 1.7.0 Backwards compat fix: fallback to `core/editor` if `core/block-editor` isn't available
4343
*
4444
* @return {Array}
4545
*/

src/util/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* Utilities
33
*
4-
* @since [version]
5-
* @version [version]
4+
* @since 1.7.0
5+
* @version 1.7.0
66
*/
77

88
import { flattenBlocks } from './get-blocks-flat';

tests/unit-tests/class-llms-blocks-test-migrate.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @since 1.3.1
88
* @since 1.4.0 Add tests for `add_template_to_post()` and `remove_template_from_post()` methods.
9-
* @since [version] Add tests for membership post type migrations.
9+
* @since 1.7.0 Add tests for membership post type migrations.
1010
*/
1111
class LLMS_Blocks_Test_Migrate extends LLMS_Blocks_Unit_Test_Case {
1212

@@ -183,7 +183,7 @@ public function test_check_sales_page() {
183183
* Test get_migrateable_post_types() method
184184
*
185185
* @since 1.3.3
186-
* @since [version] Memberships are migrateable.
186+
* @since 1.7.0 Memberships are migrateable.
187187
*
188188
* @return void
189189
*/
@@ -198,7 +198,7 @@ public function test_get_migrateable_post_types() {
198198
* Test should_migrate_post() method
199199
*
200200
* @since 1.3.3
201-
* @since [version] Memberships should migrate.
201+
* @since 1.7.0 Memberships should migrate.
202202
*
203203
* @return void
204204
*/

0 commit comments

Comments
 (0)