Plugin Directory

Changeset 1978191


Ignore:
Timestamp:
11/21/2018 02:02:06 PM (7 years ago)
Author:
alkesh7
Message:

Post Layouts - Version 1.1.2 changes

Location:
post-layouts/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • post-layouts/trunk/dist/init.php

    r1958093 r1978191  
    1717 * Enqueue assets for frontend and backend
    1818 *
    19  * @since 1.0.0
     19 * @since   1.0.0
    2020 * @package Post Layouts for Gutenberg
    2121 */
     
    3333 * Enqueue assets for backend editor
    3434 *
    35  * @since 1.0.0
     35 * @since   1.0.0
    3636 * @package Post Layouts for Gutenberg
    3737 */
     
    3939
    4040    // 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'));
    4242
    4343    // Load the compiled styles into the editor
    4444    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'));
    4545
    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    }
    5465   
    5566}
  • post-layouts/trunk/post-layouts.php

    r1958093 r1978191  
    77 * Author: Techeshta
    88 * Author URI: https://www.techeshta.com
    9  * Version: 1.1.1
     9 * Version: 1.1.2
    1010 * License: GPL2+
    1111 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
  • post-layouts/trunk/readme.txt

    r1958093 r1978191  
    88Tested up to: 4.9.8
    99Requires PHP: 5.6
    10 Stable tag: 1.1.1
     10Stable tag: 1.1.2
    1111License: GPL2+
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    7777== Changelog ==
    7878
     79= 1.1.2 =
     80Release Date: November 21st, 2018
     81
     82* Fixed: Dependency code to add support of Gutenberg 4.5 updates
     83
    7984= 1.1.1 =
    8085Release Date: October 17th, 2018
Note: See TracChangeset for help on using the changeset viewer.