Skip to content

Commit

Permalink
Phan: Remove wpcomsh stubs from masterbar (#38410)
Browse files Browse the repository at this point in the history
* Removed wpcomsh stubs from the masterbar package

* changelog

* Updated version

* Removed masterbar file from Jetpack Phan config.

* Removed files added by error

* Update projects/packages/masterbar/changelog/remove-wpcomsh-phan-stubs-from-masterbar

Co-authored-by: Brad Jorsch <[email protected]>

* Updated version

* Removed redundant changelog files

* Fixed changelogs

* Changed changelog type from removed to other

---------

Co-authored-by: Brad Jorsch <[email protected]>
  • Loading branch information
rcrdortiz and anomiex authored Jul 18, 2024
1 parent c5dfe76 commit fb45d03
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
1 change: 0 additions & 1 deletion projects/packages/masterbar/.phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
__DIR__ . '/../../../plugins/jetpack/modules/notes.php',
__DIR__ . '/../../../plugins/jetpack/modules/scan/class-admin-bar-notice.php',
__DIR__ . '/../../../plugins/jetpack/modules/stats.php',
__DIR__ . '/../../../plugins/wpcomsh/feature-plugins/masterbar.php', // function wpcomsh_is_site_sticker_active
__DIR__ . '/../../../plugins/wpcomsh/private-site/private-site.php', // function site_is_private
),
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: removed
Comment: Removed loading wpcomsh phan stubs from the Masterbar, these stubs are already included globally now.


2 changes: 1 addition & 1 deletion projects/packages/masterbar/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-masterbar",
"version": "0.4.0",
"version": "0.4.1-alpha",
"description": "The WordPress.com Toolbar feature replaces the default admin bar and offers quick links to the Reader, all your sites, your WordPress.com profile, and notifications.",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/masterbar/#readme",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion projects/packages/masterbar/src/class-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
class Main {

const PACKAGE_VERSION = '0.4.0';
const PACKAGE_VERSION = '0.4.1-alpha';

/**
* Initializer.
Expand Down
1 change: 0 additions & 1 deletion projects/plugins/jetpack/.phan/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
// DO NOT add references to files in packages like this! Packages should be listed in composer.json 'require',
// or 'require-dev' if they're only needed in tests or build scripts.
__DIR__ . '/../../../plugins/vaultpress/vaultpress.php', // class VaultPress
__DIR__ . '/../../../plugins/wpcomsh/feature-plugins/masterbar.php', // function wpcomsh_is_site_sticker_active
__DIR__ . '/../../../plugins/crm/includes/ZeroBSCRM.Core.Extensions.php', // functions zeroBSCRM_isExtensionInstalled, zeroBSCRM_extension_install_jetpackforms

// Make an exception to the above for packages/jetpack-mu-wpcom. Pulling in that whole package here seems more risky than beneficial.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: other
Comment: Removed loading wpcomsh phan stubs from the Masterbar, these stubs are already included globally now.


0 comments on commit fb45d03

Please sign in to comment.