Version Description
- 29th June 2020 =
- Fix some styles not loading in the editor
Download this release
Release Info
Developer | johnny5 |
Plugin | Layout Grid Block |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- blocks/layout-grid.php +5 -4
- index.php +1 -1
- readme.txt +4 -1
blocks/layout-grid.php
CHANGED
@@ -1,24 +1,25 @@
|
|
1 |
<?php
|
2 |
|
|
|
3 |
add_action( 'init', function() {
|
4 |
register_block_type( 'jetpack/layout-grid', [
|
5 |
'editor_script' => 'jetpack-layout-grid',
|
|
|
6 |
'editor_style' => 'jetpack-layout-grid-editor',
|
7 |
'render_callback' => function( $attribs, $content ) {
|
8 |
-
wp_enqueue_style( 'jetpack-layout-grid' );
|
9 |
wp_enqueue_style( 'wpcom-layout-grid-front' );
|
10 |
return $content;
|
11 |
-
}
|
12 |
] );
|
13 |
|
14 |
register_block_type( 'jetpack/layout-grid-column', [
|
15 |
'editor_script' => 'jetpack-layout-grid',
|
|
|
16 |
'editor_style' => 'jetpack-layout-grid-editor',
|
17 |
'render_callback' => function( $attribs, $content ) {
|
18 |
-
wp_enqueue_style( 'jetpack-layout-grid' );
|
19 |
wp_enqueue_style( 'wpcom-layout-grid-front' );
|
20 |
return $content;
|
21 |
-
}
|
22 |
] );
|
23 |
|
24 |
wp_set_script_translations( 'jetpack/layout-grid', 'layout-grid' );
|
1 |
<?php
|
2 |
|
3 |
+
// Note that 'jetpack-layout-grid' gets replaced with 'jetpack-layout-grid' when bundling
|
4 |
add_action( 'init', function() {
|
5 |
register_block_type( 'jetpack/layout-grid', [
|
6 |
'editor_script' => 'jetpack-layout-grid',
|
7 |
+
'style' => 'jetpack-layout-grid',
|
8 |
'editor_style' => 'jetpack-layout-grid-editor',
|
9 |
'render_callback' => function( $attribs, $content ) {
|
|
|
10 |
wp_enqueue_style( 'wpcom-layout-grid-front' );
|
11 |
return $content;
|
12 |
+
},
|
13 |
] );
|
14 |
|
15 |
register_block_type( 'jetpack/layout-grid-column', [
|
16 |
'editor_script' => 'jetpack-layout-grid',
|
17 |
+
'style' => 'jetpack-layout-grid',
|
18 |
'editor_style' => 'jetpack-layout-grid-editor',
|
19 |
'render_callback' => function( $attribs, $content ) {
|
|
|
20 |
wp_enqueue_style( 'wpcom-layout-grid-front' );
|
21 |
return $content;
|
22 |
+
},
|
23 |
] );
|
24 |
|
25 |
wp_set_script_translations( 'jetpack/layout-grid', 'layout-grid' );
|
index.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Layout Grid
|
4 |
* Description: Let any blocks align to a global grid
|
5 |
-
* Version: 1.2.
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com
|
8 |
* License: GPL v2 or later
|
2 |
/**
|
3 |
* Plugin Name: Layout Grid
|
4 |
* Description: Let any blocks align to a global grid
|
5 |
+
* Version: 1.2.3
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com
|
8 |
* License: GPL v2 or later
|
readme.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
=== Layout Grid Block ===
|
2 |
Contributors: automattic, jasmussen, johnny5, mkaz
|
3 |
-
Stable tag: 1.2.
|
4 |
Tested up to: 5.4.2
|
5 |
Requires at least: 5.4
|
6 |
License: GPLv2 or later
|
@@ -23,6 +23,9 @@ You can follow development, file an issue, suggest features, and view the source
|
|
23 |
|
24 |
== Changelog ==
|
25 |
|
|
|
|
|
|
|
26 |
= 1.2.2 - 23rd June 2020 =
|
27 |
* Fix the CSS loading fix from 1.2.1 so it uses wp_register_style
|
28 |
|
1 |
=== Layout Grid Block ===
|
2 |
Contributors: automattic, jasmussen, johnny5, mkaz
|
3 |
+
Stable tag: 1.2.3
|
4 |
Tested up to: 5.4.2
|
5 |
Requires at least: 5.4
|
6 |
License: GPLv2 or later
|
23 |
|
24 |
== Changelog ==
|
25 |
|
26 |
+
= 1.2.3 - 29th June 2020 =
|
27 |
+
* Fix some styles not loading in the editor
|
28 |
+
|
29 |
= 1.2.2 - 23rd June 2020 =
|
30 |
* Fix the CSS loading fix from 1.2.1 so it uses wp_register_style
|
31 |
|