Changeset 1978191
- Timestamp:
- 11/21/2018 02:02:06 PM (7 years ago)
- Location:
- post-layouts/trunk
- Files:
-
- 3 edited
-
dist/init.php (modified) (3 diffs)
-
post-layouts.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post-layouts/trunk/dist/init.php
r1958093 r1978191 17 17 * Enqueue assets for frontend and backend 18 18 * 19 * @since 1.0.019 * @since 1.0.0 20 20 * @package Post Layouts for Gutenberg 21 21 */ … … 33 33 * Enqueue assets for backend editor 34 34 * 35 * @since 1.0.035 * @since 1.0.0 36 36 * @package Post Layouts for Gutenberg 37 37 */ … … 39 39 40 40 // Load the compiled blocks into the editor 41 wp_enqueue_script('pl-block-js', plugins_url('/dist/blocks.build.js', dirname(__FILE__)), array( 'wp-blocks', 'wp-i18n', 'wp-element'), filemtime(plugin_dir_path(__FILE__) . 'blocks.build.js'));41 wp_enqueue_script('pl-block-js', plugins_url('/dist/blocks.build.js', dirname(__FILE__)), array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'wp-api' ), filemtime(plugin_dir_path(__FILE__) . 'blocks.build.js')); 42 42 43 43 // Load the compiled styles into the editor 44 44 wp_enqueue_style('pl-block-editor-css', plugins_url('dist/blocks.editor.build.css', dirname(__FILE__)), array('wp-edit-blocks'), filemtime(plugin_dir_path(__FILE__) . 'blocks.editor.build.css')); 45 45 46 wp_add_inline_script( 47 'post-layouts', 48 sprintf( 49 'var post_layouts = { localeData: %s };', 50 json_encode( gutenberg_get_jed_locale_data( 'gutenberg-slider' ) ) 51 ), 52 'before' 53 ); 46 if(function_exists('wp_get_jed_locale_data')){ 47 wp_add_inline_script( 48 'post-layouts', 49 sprintf( 50 'var post_layouts = { localeData: %s };', 51 json_encode( wp_get_jed_locale_data( 'post-layouts' ) ) 52 ), 53 'before' 54 ); 55 } else { 56 wp_add_inline_script( 57 'post-layouts', 58 sprintf( 59 'var post_layouts = { localeData: %s };', 60 json_encode( gutenberg_get_jed_locale_data( 'post-layouts' ) ) 61 ), 62 'before' 63 ); 64 } 54 65 55 66 } -
post-layouts/trunk/post-layouts.php
r1958093 r1978191 7 7 * Author: Techeshta 8 8 * Author URI: https://www.techeshta.com 9 * Version: 1.1. 19 * Version: 1.1.2 10 10 * License: GPL2+ 11 11 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt -
post-layouts/trunk/readme.txt
r1958093 r1978191 8 8 Tested up to: 4.9.8 9 9 Requires PHP: 5.6 10 Stable tag: 1.1. 110 Stable tag: 1.1.2 11 11 License: GPL2+ 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.txt … … 77 77 == Changelog == 78 78 79 = 1.1.2 = 80 Release Date: November 21st, 2018 81 82 * Fixed: Dependency code to add support of Gutenberg 4.5 updates 83 79 84 = 1.1.1 = 80 85 Release Date: October 17th, 2018
Note: See TracChangeset
for help on using the changeset viewer.