Skip to content

Commit 9d1e328

Browse files
release: version 1.6.9
- Fix links in Review Block - Fix block defaults not working in Default Section - Allow Custom sizes in Posts Block - Add filter to Posts Block's query - Add Tabs Block - Add rel attribute to Review Block's Button - Fix CSS Module breaking the editor - Add translation support
2 parents bcdebb9 + 8d4c1e1 commit 9d1e328

26 files changed

+18894
-9942
lines changed

.eslintrc

-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
"ecmaVersion": 2018,
1212
"sourceType": "module"
1313
},
14-
"plugins": [
15-
"react"
16-
],
1714
"rules": {
1815
"indent": [
1916
"error",

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ logs
44
dist
55
artifact
66
vendor
7+
packages
78
.DS_Store

build/build.css

-4
This file was deleted.

build/build.js

-2
This file was deleted.

build/build.js.LICENSE.txt

-28
This file was deleted.

build/images/logo-alt.d9fd7ba7.png

15 KB
Loading

build/index.asset.php

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api', 'wp-api-fetch', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'f13d4d59d0400ba8b4afc71e26a9834c');

build/index.css

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

build/index.js

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

build/style-index.css

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

class-otter-blocks.php

+14-13
Original file line numberDiff line numberDiff line change
@@ -249,29 +249,30 @@ public function register_settings() {
249249
* @access public
250250
*/
251251
public function enqueue_options_assets() {
252-
if ( OTTER_BLOCKS_DEV ) {
253-
$version = time();
254-
} else {
255-
$version = OTTER_BLOCKS_VERSION;
256-
}
257-
258-
$tour = get_option( 'themeisle_blocks_settings_tour' );
259-
252+
$tour = get_option( 'themeisle_blocks_settings_tour' );
260253
$wp_upload_dir = wp_upload_dir( null, false );
261254
$basedir = $wp_upload_dir['basedir'] . '/themeisle-gutenberg/';
255+
$asset_file = include plugin_dir_path( __FILE__ ) . 'build/index.asset.php';
262256

263257
wp_enqueue_style(
264258
'otter-blocks-styles',
265-
plugins_url( 'build/build.css', __FILE__ ),
259+
plugins_url( 'build/style-index.css', __FILE__ ),
266260
array( 'wp-components' ),
267-
$version
261+
$asset_file['version']
262+
);
263+
264+
wp_enqueue_style(
265+
'otter-blocks-assets',
266+
plugins_url( 'build/index.css', __FILE__ ),
267+
array(),
268+
$asset_file['version']
268269
);
269270

270271
wp_enqueue_script(
271272
'otter-blocks-scripts',
272-
plugins_url( 'build/build.js', __FILE__ ),
273-
array( 'react', 'react-dom', 'wp-api-fetch', 'wp-i18n', 'wp-api', 'wp-components', 'wp-element' ),
274-
$version,
273+
plugins_url( 'build/index.js', __FILE__ ),
274+
$asset_file['dependencies'],
275+
$asset_file['version'],
275276
true
276277
);
277278

composer.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818
}
1919
],
2020
"scripts": {
21-
"lint": "phpcs --standard=phpcs.xml -v --report=summary vendor ",
22-
"format": "phpcbf --standard=phpcs.xml --report-summary --report-source -s "
21+
"lint": "phpcs",
22+
"format": "phpcbf"
2323
},
2424
"prefer-stable": true,
2525
"config": {
26+
"vendor-dir": "packages",
2627
"optimize-autoloader": true,
2728
"platform": {
2829
"php": "5.6"
@@ -32,7 +33,7 @@
3233
"installer-disable": "true"
3334
},
3435
"autoload": {
35-
"classmap": ["vendor/codeinwp/gutenberg-blocks/inc/"]
36+
"classmap": ["packages/codeinwp/gutenberg-blocks/inc/"]
3637
},
3738
"minimum-stability": "dev",
3839
"require": {

0 commit comments

Comments
 (0)