Title: Testing Scrollbar
Last modified: March 29, 2023

---

# Testing Scrollbar

 *  Moderator [Vlad](https://test.wordpress.org/support/users/vladytimy/)
 * (@vladytimy)
 * [3 years, 3 months ago](https://test.wordpress.org/support/topic/testing-scrollbar/)
 *     ```wp-block-code
       <?php
       /**
        * Plugin Name: Gutenberg
        * Plugin URI: https://github.com/WordPress/gutenberg
        * Description: Printing since 1440. This is the development plugin for the block editor, site editor, and other future WordPress core functionality.
        * Requires at least: 6.0
        * Requires PHP: 5.6
        * Version: 15.4.0
        * Author: Gutenberg Team
        * Text Domain: gutenberg
        *
        * @package gutenberg
        */
   
       ### BEGIN AUTO-GENERATED DEFINES
       define( 'GUTENBERG_VERSION', '15.4.0' );
       define( 'GUTENBERG_GIT_COMMIT', 'd06a74d71fdd722b2ee037133867134ce956f44e' );
       ### END AUTO-GENERATED DEFINES
   
       gutenberg_pre_init();
   
       /**
        * Display a version notice and deactivate the Gutenberg plugin.
        *
        * @since 0.1.0
        */
       function gutenberg_wordpress_version_notice() {
       	echo '<div class="error"><p>';
       	/* translators: %s: Minimum required version */
       	printf( __( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ), '5.9' );
       	echo '</p></div>';
   
       	deactivate_plugins( array( 'gutenberg/gutenberg.php' ) );
       }
   
       /**
        * Display a build notice.
        *
        * @since 0.1.0
        */
       function gutenberg_build_files_notice() {
       	echo '<div class="error"><p>';
       	_e( 'Gutenberg development mode requires files to be built. Run <code>npm install</code> to install dependencies, <code>npm run build</code> to build the files or <code>npm run dev</code> to build the files and watch for changes. Read the <a href="https://github.com/WordPress/gutenberg/blob/HEAD/docs/contributors/code/getting-started-with-code-contribution.md">contributing</a> file for more information.', 'gutenberg' );
       	echo '</p></div>';
       }
   
       /**
        * Verify that we can initialize the Gutenberg editor , then load it.
        *
        * @since 1.5.0
        */
       function gutenberg_pre_init() {
       	global $wp_version;
       	if ( defined( 'GUTENBERG_DEVELOPMENT_MODE' ) && GUTENBERG_DEVELOPMENT_MODE && ! file_exists( __DIR__ . '/build/blocks' ) ) {
       		add_action( 'admin_notices', 'gutenberg_build_files_notice' );
       		return;
       	}
   
       	// Get unmodified $wp_version.
       	include ABSPATH . WPINC . '/version.php';
   
       	// Strip '-src' from the version string. Messes up version_compare().
       	$version = str_replace( '-src', '', $wp_version );
   
       	// Compare against major release versions (X.Y) rather than minor (X.Y.Z)
       	// unless a minor release is the actual minimum requirement. WordPress reports
       	// X.Y for its major releases.
       	if ( version_compare( $version, '5.9', '<' ) ) {
       		add_action( 'admin_notices', 'gutenberg_wordpress_version_notice' );
       		return;
       	}
   
       	require_once __DIR__ . '/lib/load.php';
       }
       ```
   

The topic ‘Testing Scrollbar’ is closed to new replies.

 * In: [Plugins Test](https://test.wordpress.org/support/forum/plugins/)
 * 0 replies
 * 1 participant
 * Last reply from: [Vlad](https://test.wordpress.org/support/users/vladytimy/)
 * Last activity: [3 years, 3 months ago](https://test.wordpress.org/support/topic/testing-scrollbar/)
 * Status: not resolved

## Topics

### Most popular topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
