mirror of
https://gh.wpcy.net/https://github.com/WordPress/create-block-theme.git
synced 2026-04-23 10:02:28 +08:00
Some checks failed
Run checks / Compute previous WordPress version (push) Successful in 3s
Run checks / E2E Tests (push) Failing after 1s
Run checks / PHP 7.4 (push) Failing after 0s
Run checks / PHP 7.4 (WP previous major version) (push) Failing after 0s
Run checks / PHP 8.0 (push) Failing after 0s
Run checks / PHP 8.0 (WP previous major version) (push) Failing after 0s
Run checks / PHP 8.1 (push) Failing after 0s
Run checks / PHP 8.1 (WP previous major version) (push) Failing after 1s
Run checks / PHP 8.2 (push) Failing after 1s
Run checks / PHP 8.2 (WP previous major version) (push) Failing after 0s
Run checks / PHP 8.3 (push) Failing after 0s
Run checks / PHP 8.3 (WP previous major version) (push) Failing after 0s
Run checks / Lint (push) Failing after 1m25s
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
46 lines
1.1 KiB
PHP
46 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @wordpress-plugin
|
|
* Plugin Name: Create Block Theme
|
|
* Plugin URI: https://wordpress.org/plugins/create-block-theme
|
|
* Description: Generates a block theme
|
|
* Version: 2.9.0
|
|
* Author: WordPress.org
|
|
* Author URI: https://wordpress.org/
|
|
* License: GNU General Public License v2 or later
|
|
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|
* Text Domain: create-block-theme
|
|
*/
|
|
|
|
// If this file is called directly, abort.
|
|
if ( ! defined( 'WPINC' ) ) {
|
|
die;
|
|
}
|
|
|
|
// Include file with download_url() if function doesn't exist.
|
|
if ( ! function_exists( 'download_url' ) ) {
|
|
require_once ABSPATH . 'wp-admin/includes/file.php';
|
|
}
|
|
|
|
/**
|
|
* The core plugin class.
|
|
*/
|
|
require plugin_dir_path( __FILE__ ) . 'includes/class-create-block-theme.php';
|
|
|
|
/**
|
|
* Begins execution of the plugin.
|
|
*
|
|
* Since everything within the plugin is registered via hooks,
|
|
* then kicking off the plugin from this point in the file does
|
|
* not affect the page life cycle.
|
|
*
|
|
* @since 0.0.2
|
|
*/
|
|
function cbt_run_create_block_theme() {
|
|
|
|
$plugin = new CBT_Plugin();
|
|
$plugin->run();
|
|
|
|
}
|
|
cbt_run_create_block_theme();
|