Skip to content

Commit 7f1afc6

Browse files
committed
1.0.1
1 parent 932034c commit 7f1afc6

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
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.0.1 - 2018-12-05
5+
-------------------
6+
7+
+ Made plugin url relative
8+
9+
410
v1.0.0 - 2018-12-05
511
-------------------
612

includes/class-llms-blocks-assets.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* @package LifterLMS_Blocks/Main
88
* @since 1.0.0
9-
* @version 1.0.0
9+
* @version 1.0.1
1010
*/
1111

1212
defined( 'ABSPATH' ) || exit;
@@ -35,13 +35,13 @@ public function __construct() {
3535
* `wp-blocks`: includes block type registration and related functions.
3636
*
3737
* @since 1.0.0
38-
* @version 1.0.0
38+
* @version 1.0.1
3939
*/
4040
public function block_assets() {
4141

4242
wp_enqueue_style(
4343
'llms-blocks',
44-
plugins_url( 'dist/blocks.style.build.css', dirname( __FILE__ ) ),
44+
LLMS_BLOCKS_PLUGIN_DIR_URL . '/dist/blocks.style.build.css',
4545
array( 'wp-blocks' ),
4646
LLMS_BLOCKS_VERSION
4747
);
@@ -56,21 +56,21 @@ public function block_assets() {
5656
* `wp-i18n`: To internationalize the block's text.
5757
*
5858
* @since 1.0.0
59-
* @version 1.0.0
59+
* @version 1.0.1
6060
*/
6161
public function editor_assets() {
6262

6363
wp_enqueue_script(
6464
'lifterlms_blocks-cgb-block-js',
65-
plugins_url( '/dist/blocks.build.js', dirname( __FILE__ ) ),
65+
LLMS_BLOCKS_PLUGIN_DIR_URL . '/dist/blocks.build.js',
6666
array( 'wp-blocks', 'wp-i18n', 'wp-element' ),
6767
LLMS_BLOCKS_VERSION,
6868
true
6969
);
7070

7171
wp_enqueue_style(
7272
'lifterlms_blocks-cgb-block-editor-css',
73-
plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ),
73+
LLMS_BLOCKS_PLUGIN_DIR_URL . 'dist/blocks.editor.build.css',
7474
array( 'wp-edit-blocks' ),
7575
LLMS_BLOCKS_VERSION
7676
);

lifterlms-blocks.php

+6-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.0.0
11+
* Version: 1.0.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.0.0' );
25+
define( 'LLMS_BLOCKS_VERSION', '1.0.1' );
2626
}
2727

2828
/**
@@ -50,6 +50,10 @@
5050
define( 'LLMS_BLOCKS_PLUGIN_DIR', dirname( LLMS_BLOCKS_PLUGIN_FILE ) );
5151
}
5252

53+
if ( ! defined( 'LLMS_BLOCKS_PLUGIN_DIR_URL' ) ) {
54+
define( 'LLMS_BLOCKS_PLUGIN_DIR_URL', plugin_dir_url( LLMS_BLOCKS_PLUGIN_FILE ) );
55+
}
56+
5357
// Start.
5458
require_once LLMS_BLOCKS_PLUGIN_DIR . '/includes/class-llms-blocks.php';
5559

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

0 commit comments

Comments
 (0)