| @@ -2,11 +2,11 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Plugin Name: Gutenberg |
| 4 | 4 | * Plugin URI: https://github.com/WordPress/gutenberg |
| 5 | 5 | * Description: Printing since 1440. This is the development plugin for the block editor, site editor, and other future WordPress core functionality. |
| 6 | - * Requires at least: 6.9 | |
| 7 | - * Requires PHP: 7.4 | |
| 8 | - * Version: 23.5.2 | |
| 6 | + * Requires at least: 6.5 | |
| 7 | + * Requires PHP: 7.2 | |
| 8 | + * Version: 19.6.1 | |
| 9 | 9 | * Author: Gutenberg Team |
| 10 | 10 | * Text Domain: gutenberg |
| 11 | 11 | * |
| 12 | 12 | * @package gutenberg |
| @@ -11,10 +11,15 @@ | ||
| 11 | 11 | * |
| 12 | 12 | * @package gutenberg |
| 13 | 13 | */ |
| 14 | 14 | |
| 15 | -defined( 'GUTENBERG_MINIMUM_WP_VERSION' ) or define( 'GUTENBERG_MINIMUM_WP_VERSION', '6.9' ); | |
| 15 | +### BEGIN AUTO-GENERATED DEFINES | |
| 16 | +define( 'GUTENBERG_VERSION', '19.6.1' ); | |
| 17 | +define( 'GUTENBERG_GIT_COMMIT', 'd97eb597e4cee48fb3ba2b1bbf2879e6ee05c506' ); | |
| 18 | +### END AUTO-GENERATED DEFINES | |
| 19 | +defined( 'GUTENBERG_MINIMUM_WP_VERSION' ) or define( 'GUTENBERG_MINIMUM_WP_VERSION', '6.5' ); | |
| 16 | 20 | |
| 21 | + | |
| 17 | 22 | gutenberg_pre_init(); |
| 18 | 23 | |
| 19 | 24 | /** |
| 20 | 25 | * Display a version notice and deactivate the Gutenberg plugin. |
| @@ -26,9 +31,9 @@ | ||
| 26 | 31 | /* translators: %s: Minimum required version */ |
| 27 | 32 | printf( __( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ), GUTENBERG_MINIMUM_WP_VERSION ); |
| 28 | 33 | echo '</p></div>'; |
| 29 | 34 | |
| 30 | - deactivate_plugins( array( plugin_basename( __FILE__ ) ) ); | |
| 35 | + deactivate_plugins( array( 'gutenberg/gutenberg.php' ) ); | |
| 31 | 36 | } |
| 32 | 37 | |
| 33 | 38 | /** |
| 34 | 39 | * Display a build notice. |
| @@ -50,9 +55,9 @@ | ||
| 50 | 55 | * |
| 51 | 56 | */ |
| 52 | 57 | function gutenberg_pre_init() { |
| 53 | 58 | global $wp_version; |
| 54 | - if ( ! file_exists( __DIR__ . '/build/scripts/blocks' ) ) { | |
| 59 | + if ( defined( 'GUTENBERG_DEVELOPMENT_MODE' ) && GUTENBERG_DEVELOPMENT_MODE && ! file_exists( __DIR__ . '/build/blocks' ) ) { | |
| 55 | 60 | add_action( 'admin_notices', 'gutenberg_build_files_notice' ); |
| 56 | 61 | return; |
| 57 | 62 | } |
| 58 | 63 | |