Plugin Directory

Changeset 1985869


Ignore:
Timestamp:
12/05/2018 12:06:10 PM (7 years ago)
Author:
editorblocks
Message:

5.0-RC3 compatibility

Location:
disable-gutenberg-blocks/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • disable-gutenberg-blocks/trunk/class-dgb-list-table.php

    r1985093 r1985869  
    152152     */
    153153    public function get_bulk_actions() {
    154         $actions = [
     154        $actions = array(
    155155            'bulk-enable'  => esc_html__( 'Enable', 'disable-google-fonts' ),
    156156            'bulk-disable' => esc_html__( 'Disable', 'disable-google-fonts' ),
    157         ];
     157        );
    158158
    159159        return $actions;
  • disable-gutenberg-blocks/trunk/class-disable-gutenberg-blocks.php

    r1985114 r1985869  
    66 * Plugin URI:  https://wordpress.org/plugins/disable-gutenberg-blocks/
    77 * Description: Remove unwanted blocks from the Gutenberg Block Inserter.
    8  * Version:     1.0.2
     8 * Version:     1.0.3
    99 * Author:      Danny Cooper
    1010 * Author URI:  https://editorblocks.com
     
    5757        require_once DGB_PLUGIN_DIR_PATH . 'class-dgb-admin-page.php';
    5858        add_filter( 'plugin_action_links_' . plugin_basename( DGB_PLUGIN_DIR_PATH . 'class-disable-gutenberg-blocks.php' ), array( $this, 'links' ) );
    59 
    6059    }
    6160
     
    9291 */
    9392function DGF() {
    94     if ( function_exists( 'gutenberg_get_block_categories' ) ) {
    95         return Disable_Gutenberg_Blocks::instance();
     93    include_once ABSPATH . 'wp-admin/includes/plugin.php';
     94
     95    if ( is_plugin_active( 'gutenberg/gutenberg.php' ) ) {
     96        Disable_Gutenberg_Blocks::instance();
     97    } elseif ( version_compare( get_bloginfo( 'version' ), '4.9.9', '>' ) ) {
     98        function gutenberg_get_block_categories( $post ) {
     99            return get_block_categories( $post );
     100        }
     101        Disable_Gutenberg_Blocks::instance();
    96102    }
    97103}
  • disable-gutenberg-blocks/trunk/readme.txt

    r1985114 r1985869  
    5757== Changelog ==
    5858
     59= 1.0.3 =
     60*Release Date - December 5 2018*
     61
     62* Add compatibility for 5.0RC
     63
    5964= 1.0.2 =
    6065*Release Date - December 4 2018*
Note: See TracChangeset for help on using the changeset viewer.