Changeset 1985869
- Timestamp:
- 12/05/2018 12:06:10 PM (7 years ago)
- Location:
- disable-gutenberg-blocks/trunk
- Files:
-
- 3 edited
-
class-dgb-list-table.php (modified) (1 diff)
-
class-disable-gutenberg-blocks.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
disable-gutenberg-blocks/trunk/class-dgb-list-table.php
r1985093 r1985869 152 152 */ 153 153 public function get_bulk_actions() { 154 $actions = [154 $actions = array( 155 155 'bulk-enable' => esc_html__( 'Enable', 'disable-google-fonts' ), 156 156 'bulk-disable' => esc_html__( 'Disable', 'disable-google-fonts' ), 157 ];157 ); 158 158 159 159 return $actions; -
disable-gutenberg-blocks/trunk/class-disable-gutenberg-blocks.php
r1985114 r1985869 6 6 * Plugin URI: https://wordpress.org/plugins/disable-gutenberg-blocks/ 7 7 * Description: Remove unwanted blocks from the Gutenberg Block Inserter. 8 * Version: 1.0. 28 * Version: 1.0.3 9 9 * Author: Danny Cooper 10 10 * Author URI: https://editorblocks.com … … 57 57 require_once DGB_PLUGIN_DIR_PATH . 'class-dgb-admin-page.php'; 58 58 add_filter( 'plugin_action_links_' . plugin_basename( DGB_PLUGIN_DIR_PATH . 'class-disable-gutenberg-blocks.php' ), array( $this, 'links' ) ); 59 60 59 } 61 60 … … 92 91 */ 93 92 function 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(); 96 102 } 97 103 } -
disable-gutenberg-blocks/trunk/readme.txt
r1985114 r1985869 57 57 == Changelog == 58 58 59 = 1.0.3 = 60 *Release Date - December 5 2018* 61 62 * Add compatibility for 5.0RC 63 59 64 = 1.0.2 = 60 65 *Release Date - December 4 2018*
Note: See TracChangeset
for help on using the changeset viewer.