diff --git a/projects/packages/jetpack-mu-wpcom/changelog/add-admin-interface-style-to-settings b/projects/packages/jetpack-mu-wpcom/changelog/add-admin-interface-style-to-settings new file mode 100644 index 0000000000000..965133d87434c --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/add-admin-interface-style-to-settings @@ -0,0 +1,4 @@ +Significance: minor +Type: added + +Settings: Add Admin Interface Style options. diff --git a/projects/packages/jetpack-mu-wpcom/composer.json b/projects/packages/jetpack-mu-wpcom/composer.json index 2db2934ced503..07e016b598eeb 100644 --- a/projects/packages/jetpack-mu-wpcom/composer.json +++ b/projects/packages/jetpack-mu-wpcom/composer.json @@ -56,7 +56,7 @@ }, "autotagger": true, "branch-alias": { - "dev-trunk": "5.28.x-dev" + "dev-trunk": "5.29.x-dev" }, "textdomain": "jetpack-mu-wpcom", "version-constants": { diff --git a/projects/packages/jetpack-mu-wpcom/package.json b/projects/packages/jetpack-mu-wpcom/package.json index f1a6ba02a1df8..e10a48e4b4ffa 100644 --- a/projects/packages/jetpack-mu-wpcom/package.json +++ b/projects/packages/jetpack-mu-wpcom/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-mu-wpcom", - "version": "5.28.1-alpha", + "version": "5.29.0-alpha", "description": "Enhances your site with features powered by WordPress.com", "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/jetpack-mu-wpcom/#readme", "bugs": { diff --git a/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php b/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php index 87489ef6c8d66..56acddecbe8b2 100644 --- a/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php +++ b/projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php @@ -13,7 +13,7 @@ * Jetpack_Mu_Wpcom main class. */ class Jetpack_Mu_Wpcom { - const PACKAGE_VERSION = '5.28.1-alpha'; + const PACKAGE_VERSION = '5.29.0-alpha'; const PKG_DIR = __DIR__ . '/../'; const BASE_DIR = __DIR__ . '/'; const BASE_FILE = __FILE__; @@ -41,6 +41,7 @@ public static function init() { add_action( 'plugins_loaded', array( __CLASS__, 'load_wpcom_rest_api_endpoints' ) ); add_action( 'plugins_loaded', array( __CLASS__, 'load_block_theme_previews' ) ); add_action( 'plugins_loaded', array( __CLASS__, 'load_wpcom_command_palette' ) ); + add_action( 'plugins_loaded', array( __CLASS__, 'load_wpcom_admin_interface' ) ); // This feature runs only on simple sites. if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { @@ -290,4 +291,13 @@ public static function load_wpcom_simple_odyssey_stats() { require_once __DIR__ . '/features/wpcom-simple-odyssey-stats/wpcom-simple-odyssey-stats.php'; } } + + /** + * Load WPCOM Admin Interface. + * + * @return void + */ + public static function load_wpcom_admin_interface() { + require_once __DIR__ . '/features/wpcom-admin-interface/wpcom-admin-interface.php'; + } } diff --git a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-interface/wpcom-admin-interface.php b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-interface/wpcom-admin-interface.php new file mode 100644 index 0000000000000..7e3693fc209f1 --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-admin-interface/wpcom-admin-interface.php @@ -0,0 +1,70 @@ + 'esc_attr' ) ); +} + +/** + * Display the wpcom_admin_interface setting on the General settings page. + */ +function wpcom_admin_interface_display() { + $value = get_option( 'wpcom_admin_interface' ); + + echo '