Skip to content

Commit

Permalink
Merge pull request #66 from WordPress/fix/add-gutenberg-plugin-check
Browse files Browse the repository at this point in the history
Deactivate plugin when Gutenberg is not installed and activated
  • Loading branch information
cbravobernal authored Apr 23, 2024
2 parents ebdffe1 + ec09ec3 commit a81a74e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions wpmovies.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,14 @@
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wp-movies-demo
* Requires Plugins: gutenberg
*/

require_once __DIR__ . '/lib/custom-post-types.php';
require_once __DIR__ . '/lib/custom-taxonomies.php';
require_once __DIR__ . '/lib/custom-query-block.php';
require_once __DIR__ . '/lib/db-update/index.php';


// Check if Gutenberg plugin is active.
if ( ! function_exists( 'is_plugin_active' ) ) {
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
}

add_action( 'init', 'auto_register_block_types' );

/**
Expand Down

0 comments on commit a81a74e

Please sign in to comment.