Skip to content

Commit

Permalink
WP.com menu: Add "Hosting > Add-ons" menu to Atomic sites (#37318)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtr authored May 10, 2024
1 parent 72c6c4a commit a619091
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

WP.com menu: Add "Hosting > Add-ons" menu to Atomic sites
2 changes: 1 addition & 1 deletion projects/packages/jetpack-mu-wpcom/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-mu-wpcom",
"version": "5.29.0",
"version": "5.29.1-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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Jetpack_Mu_Wpcom main class.
*/
class Jetpack_Mu_Wpcom {
const PACKAGE_VERSION = '5.29.0';
const PACKAGE_VERSION = '5.29.1-alpha';
const PKG_DIR = __DIR__ . '/../';
const BASE_DIR = __DIR__ . '/';
const BASE_FILE = __FILE__;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,14 @@ function wpcom_add_wpcom_menu_item() {
null
);

if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
add_submenu_page(
$parent_slug,
esc_attr__( 'Add-ons', 'jetpack-mu-wpcom' ),
esc_attr__( 'Add-ons', 'jetpack-mu-wpcom' ),
'manage_options',
esc_url( "https://wordpress.com/add-ons/$domain" ),
null
);
}
add_submenu_page(
$parent_slug,
esc_attr__( 'Add-ons', 'jetpack-mu-wpcom' ),
esc_attr__( 'Add-ons', 'jetpack-mu-wpcom' ),
'manage_options',
esc_url( "https://wordpress.com/add-ons/$domain" ),
null
);

add_submenu_page(
$parent_slug,
Expand Down

0 comments on commit a619091

Please sign in to comment.