File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,11 @@ public static function init(): Controller {
4646 }
4747
4848 WordPressAdmin::registerHooks ();
49- WordPressAdmin::buildUpdateChecker ( $ bootstrap_file );
49+
50+ if ( ! defined ( 'STATIC_DEPLOY_WP_ORG_MODE ' ) || ! STATIC_DEPLOY_WP_ORG_MODE ) {
51+ WordPressAdmin::buildUpdateChecker ( $ bootstrap_file );
52+ }
53+
5054 WordPressAdmin::addAdminUIElements ();
5155
5256 Utils::setMaxExecutionTime ();
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ class WordPressAdmin {
1919 * @param string $bootstrap_file main plugin filepath
2020 */
2121 public static function buildUpdateChecker ( string $ bootstrap_file ): void {
22+ if ( defined ( 'STATIC_DEPLOY_WP_ORG_MODE ' ) && STATIC_DEPLOY_WP_ORG_MODE ) {
23+ return ;
24+ }
25+
2226 PucFactory::buildUpdateChecker (
2327 // phpcs:disable Generic.Files.LineLength
2428 'https://raw.githubusercontent.com/staticweb-io/static-deploy/refs/heads/develop/update.json ' ,
You can’t perform that action at this time.
0 commit comments