diff --git a/.agents/skills/ship-wp-ability/references/class-skeleton.md b/.agents/skills/ship-wp-ability/references/class-skeleton.md index 557d6f667258..743ac3927bf8 100644 --- a/.agents/skills/ship-wp-ability/references/class-skeleton.md +++ b/.agents/skills/ship-wp-ability/references/class-skeleton.md @@ -59,8 +59,6 @@ Path: `projects/plugins/jetpack/src/abilities/class--abilities.php` * @package automattic/jetpack */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9; suppressions needed for older-WP compatibility runs. - namespace Automattic\Jetpack\Plugin\Abilities; use Automattic\Jetpack\WP_Abilities\Registrar; @@ -321,8 +319,6 @@ Only two things change from the plugin template: * @package automattic/jetpack- */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Ability API added in WP 6.9. - namespace Automattic\Jetpack\\Abilities; use Automattic\Jetpack\WP_Abilities\Registrar; diff --git a/.agents/skills/ship-wp-ability/references/test-templates.md b/.agents/skills/ship-wp-ability/references/test-templates.md index a74ac646cf34..d6a4bab800c3 100644 --- a/.agents/skills/ship-wp-ability/references/test-templates.md +++ b/.agents/skills/ship-wp-ability/references/test-templates.md @@ -27,8 +27,6 @@ Uses `WP_UnitTestCase` with full WP test environment available. Can create users * @package automattic/jetpack */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9. - use Automattic\Jetpack\Plugin\Abilities\_Abilities; use Automattic\Jetpack\WP_Abilities\Registrar; use PHPUnit\Framework\Attributes\CoversClass; diff --git a/.phpcs.config.xml b/.phpcs.config.xml index 0ec3518a66ae..24951a85faef 100644 --- a/.phpcs.config.xml +++ b/.phpcs.config.xml @@ -2,7 +2,7 @@ - + diff --git a/composer.json b/composer.json index 418029171ed0..c3100bc32423 100644 --- a/composer.json +++ b/composer.json @@ -15,8 +15,8 @@ "phan/phan": "5.5.2", "php-parallel-lint/php-parallel-lint": "^1.4.0", "php-stubs/woocommerce-stubs": ">=7.0", - "php-stubs/wordpress-stubs": ">=6.8", - "php-stubs/wordpress-tests-stubs": ">=6.8", + "php-stubs/wordpress-stubs": ">=6.9", + "php-stubs/wordpress-tests-stubs": ">=6.9", "php-stubs/wp-cli-stubs": "^2.10", "phpcompatibility/phpcompatibility-wp": "^2.1", "sirbrillig/phpcs-changed": "^2.11.5", diff --git a/composer.lock b/composer.lock index 4548dbcf6f7c..05468ae0ddff 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c69824f8f499d03d89e63879494daf77", + "content-hash": "4ade5e5ce385b334cac92844d0cf7cf3", "packages": [], "packages-dev": [ { diff --git a/projects/packages/backup/.phan/config.php b/projects/packages/backup/.phan/config.php index c1b0362abcba..c4a2501f91ea 100644 --- a/projects/packages/backup/.phan/config.php +++ b/projects/packages/backup/.phan/config.php @@ -10,4 +10,12 @@ // Require base config. require __DIR__ . '/../../../../.phan/config.base.php'; -return make_phan_config( dirname( __DIR__ ), array( '+stubs' => array( 'woocommerce-internal' ) ) ); +return make_phan_config( + dirname( __DIR__ ), + array( + '+stubs' => array( 'woocommerce-internal' ), + 'exclude_file_regex' => array( + 'build/', + ), + ) +); diff --git a/projects/packages/backup/changelog/update-min-wp-to-6.9 b/projects/packages/backup/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..9cb45c954861 --- /dev/null +++ b/projects/packages/backup/changelog/update-min-wp-to-6.9 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Clean up obsolete phan suppressions now that we dropped WP 6.8 + + diff --git a/projects/packages/backup/changelog/update-min-wp-to-6.9#2 b/projects/packages/backup/changelog/update-min-wp-to-6.9#2 new file mode 100644 index 000000000000..e398edeb412e --- /dev/null +++ b/projects/packages/backup/changelog/update-min-wp-to-6.9#2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Exclude wp-build "build" dir from Phan. It's confusing when running CI (where it doesn't exist) versus locally (where it might). + + diff --git a/projects/packages/backup/src/abilities/class-backup-abilities.php b/projects/packages/backup/src/abilities/class-backup-abilities.php index e8cc162c5a36..327496fee69c 100644 --- a/projects/packages/backup/src/abilities/class-backup-abilities.php +++ b/projects/packages/backup/src/abilities/class-backup-abilities.php @@ -9,8 +9,6 @@ * @package automattic/jetpack-backup */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9; suppressions for older-WP compatibility runs. - namespace Automattic\Jetpack\Backup\V0005\Abilities; use Automattic\Jetpack\Backup\V0005\Jetpack_Backup; diff --git a/projects/packages/backup/tests/php/abilities/Backup_Abilities_Test.php b/projects/packages/backup/tests/php/abilities/Backup_Abilities_Test.php index 14ac47396de9..076e682e80dc 100644 --- a/projects/packages/backup/tests/php/abilities/Backup_Abilities_Test.php +++ b/projects/packages/backup/tests/php/abilities/Backup_Abilities_Test.php @@ -5,8 +5,6 @@ * @package automattic/jetpack-backup */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9. - namespace Automattic\Jetpack\Backup\V0005\Abilities; use PHPUnit\Framework\Attributes\CoversClass; diff --git a/projects/packages/classic-theme-helper/changelog/update-min-wp-to-6.9 b/projects/packages/classic-theme-helper/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..9cb45c954861 --- /dev/null +++ b/projects/packages/classic-theme-helper/changelog/update-min-wp-to-6.9 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Clean up obsolete phan suppressions now that we dropped WP 6.8 + + diff --git a/projects/packages/classic-theme-helper/src/custom-post-types/class-nova-restaurant.php b/projects/packages/classic-theme-helper/src/custom-post-types/class-nova-restaurant.php index 8066773fdcc2..af4c71e66b12 100644 --- a/projects/packages/classic-theme-helper/src/custom-post-types/class-nova-restaurant.php +++ b/projects/packages/classic-theme-helper/src/custom-post-types/class-nova-restaurant.php @@ -1403,7 +1403,7 @@ public function get_menus( $args = array() ) { ); $args['taxonomy'] = self::MENU_TAX; - $terms = get_terms( $args ); // @phan-suppress-current-line PhanAccessMethodInternal @phan-suppress-current-line UnusedSuppression -- Fixed in WP 6.9, but then we need a suppression for the WP 6.8 compat run. @todo Remove this suppression when we drop WP <6.9. + $terms = get_terms( $args ); if ( ! $terms || is_wp_error( $terms ) ) { return array(); } diff --git a/projects/packages/codesniffer/README.md b/projects/packages/codesniffer/README.md index cfb79d628c3b..11492f618e81 100644 --- a/projects/packages/codesniffer/README.md +++ b/projects/packages/codesniffer/README.md @@ -27,7 +27,7 @@ You should then include the Jetpack rules in your `.phpcs.xml.dist`, like ``` You will also likely want to set some configuration for other included rulesets: ```xml - + ``` diff --git a/projects/packages/codesniffer/changelog/update-min-wp-to-6.9 b/projects/packages/codesniffer/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..61422bce9c0c --- /dev/null +++ b/projects/packages/codesniffer/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Bump `minimum_supported_wp_version` in README to 6.9. diff --git a/projects/packages/codesniffer/tests/php/integration/files/default.xml b/projects/packages/codesniffer/tests/php/integration/files/default.xml index 79b9c6e0356d..906947da4030 100644 --- a/projects/packages/codesniffer/tests/php/integration/files/default.xml +++ b/projects/packages/codesniffer/tests/php/integration/files/default.xml @@ -1,7 +1,7 @@ - + diff --git a/projects/packages/codesniffer/tests/php/integration/files/i18n-text_domain-default.php.ruleset.xml b/projects/packages/codesniffer/tests/php/integration/files/i18n-text_domain-default.php.ruleset.xml index 5f0622d41007..fa7f57c2ef45 100644 --- a/projects/packages/codesniffer/tests/php/integration/files/i18n-text_domain-default.php.ruleset.xml +++ b/projects/packages/codesniffer/tests/php/integration/files/i18n-text_domain-default.php.ruleset.xml @@ -1,7 +1,7 @@ - + diff --git a/projects/packages/codesniffer/tests/php/integration/files/i18n-text_domain-not-set.php.ruleset.xml b/projects/packages/codesniffer/tests/php/integration/files/i18n-text_domain-not-set.php.ruleset.xml index e5f76fff405d..8743ebf2fee4 100644 --- a/projects/packages/codesniffer/tests/php/integration/files/i18n-text_domain-not-set.php.ruleset.xml +++ b/projects/packages/codesniffer/tests/php/integration/files/i18n-text_domain-not-set.php.ruleset.xml @@ -1,7 +1,7 @@ - + diff --git a/projects/packages/forms/changelog/update-min-wp-to-6.9 b/projects/packages/forms/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..9cb45c954861 --- /dev/null +++ b/projects/packages/forms/changelog/update-min-wp-to-6.9 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Clean up obsolete phan suppressions now that we dropped WP 6.8 + + diff --git a/projects/packages/forms/src/abilities/class-forms-abilities.php b/projects/packages/forms/src/abilities/class-forms-abilities.php index 18c6fb012835..88517cc013a1 100644 --- a/projects/packages/forms/src/abilities/class-forms-abilities.php +++ b/projects/packages/forms/src/abilities/class-forms-abilities.php @@ -8,8 +8,6 @@ * @since 1.0.0 */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Ability API added in WP 6.9, but then we need a suppression for the WP 6.8 compat run. @todo Remove this line when we drop WP <6.9. - namespace Automattic\Jetpack\Forms\Abilities; use Automattic\Jetpack\WP_Abilities\Registrar; diff --git a/projects/packages/forms/tests/php/abilities/Forms_Abilities_Test.php b/projects/packages/forms/tests/php/abilities/Forms_Abilities_Test.php index 0fc6dfc4ebd0..e8cbe0350df1 100644 --- a/projects/packages/forms/tests/php/abilities/Forms_Abilities_Test.php +++ b/projects/packages/forms/tests/php/abilities/Forms_Abilities_Test.php @@ -7,8 +7,6 @@ * @phan-file-suppress PhanPluginDuplicateAdjacentStatement -- Intentional for idempotency test */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Ability API added in WP 6.9, but then we need a suppression for the WP 6.8 compat run. @todo Remove this line when we drop WP <6.9. - namespace Automattic\Jetpack\Forms\Abilities; use Automattic\Jetpack\Forms\ContactForm\Contact_Form; diff --git a/projects/packages/import/changelog/update-min-wp-to-6.9 b/projects/packages/import/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..9cb45c954861 --- /dev/null +++ b/projects/packages/import/changelog/update-min-wp-to-6.9 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Clean up obsolete phan suppressions now that we dropped WP 6.8 + + diff --git a/projects/packages/import/src/endpoints/class-post.php b/projects/packages/import/src/endpoints/class-post.php index 149229f61163..cc4c40652e09 100644 --- a/projects/packages/import/src/endpoints/class-post.php +++ b/projects/packages/import/src/endpoints/class-post.php @@ -210,7 +210,6 @@ function ( $key ) { * @return array Array of term IDs. */ protected function get_term_ids_from_slugs( $term_slugs, $taxonomy_name ) { - // @phan-suppress-next-line PhanAccessMethodInternal @phan-suppress-current-line UnusedSuppression -- Fixed in WP 6.9, but then we need a suppression for the WP 6.8 compat run. @todo Remove this suppression when we drop WP <6.9. return get_terms( array( 'fields' => 'ids', diff --git a/projects/packages/newsletter/.phan/config.php b/projects/packages/newsletter/.phan/config.php index 00eb11c8f2c0..02342631fe9d 100644 --- a/projects/packages/newsletter/.phan/config.php +++ b/projects/packages/newsletter/.phan/config.php @@ -10,4 +10,11 @@ // Require base config. require __DIR__ . '/../../../../.phan/config.base.php'; -return make_phan_config( dirname( __DIR__ ) ); +return make_phan_config( + dirname( __DIR__ ), + array( + 'exclude_file_regex' => array( + 'build/', + ), + ) +); diff --git a/projects/packages/newsletter/changelog/update-min-wp-to-6.9#2 b/projects/packages/newsletter/changelog/update-min-wp-to-6.9#2 new file mode 100644 index 000000000000..e398edeb412e --- /dev/null +++ b/projects/packages/newsletter/changelog/update-min-wp-to-6.9#2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Exclude wp-build "build" dir from Phan. It's confusing when running CI (where it doesn't exist) versus locally (where it might). + + diff --git a/projects/packages/podcast/.phan/config.php b/projects/packages/podcast/.phan/config.php index c49e636fb203..443b4e0a461b 100644 --- a/projects/packages/podcast/.phan/config.php +++ b/projects/packages/podcast/.phan/config.php @@ -13,6 +13,9 @@ return make_phan_config( dirname( __DIR__ ), array( - '+stubs' => array( 'wpcom' ), + '+stubs' => array( 'wpcom' ), + 'exclude_file_regex' => array( + 'build/', + ), ) ); diff --git a/projects/packages/podcast/changelog/update-min-wp-to-6.9#2 b/projects/packages/podcast/changelog/update-min-wp-to-6.9#2 new file mode 100644 index 000000000000..e398edeb412e --- /dev/null +++ b/projects/packages/podcast/changelog/update-min-wp-to-6.9#2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Exclude wp-build "build" dir from Phan. It's confusing when running CI (where it doesn't exist) versus locally (where it might). + + diff --git a/projects/packages/premium-analytics/.phan/config.php b/projects/packages/premium-analytics/.phan/config.php index 671c619bbbbe..54b59a9381e6 100644 --- a/projects/packages/premium-analytics/.phan/config.php +++ b/projects/packages/premium-analytics/.phan/config.php @@ -10,4 +10,11 @@ // Require base config. require __DIR__ . '/../../../../.phan/config.base.php'; -return make_phan_config( dirname( __DIR__ ) ); +return make_phan_config( + dirname( __DIR__ ), + array( + 'exclude_file_regex' => array( + 'build/', + ), + ) +); diff --git a/projects/packages/premium-analytics/changelog/update-min-wp-to-6.9#2 b/projects/packages/premium-analytics/changelog/update-min-wp-to-6.9#2 new file mode 100644 index 000000000000..e398edeb412e --- /dev/null +++ b/projects/packages/premium-analytics/changelog/update-min-wp-to-6.9#2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Exclude wp-build "build" dir from Phan. It's confusing when running CI (where it doesn't exist) versus locally (where it might). + + diff --git a/projects/packages/scan/.phan/config.php b/projects/packages/scan/.phan/config.php index 248fdae45f1c..7885f9a4aebb 100644 --- a/projects/packages/scan/.phan/config.php +++ b/projects/packages/scan/.phan/config.php @@ -10,4 +10,11 @@ // Require base config. require __DIR__ . '/../../../../.phan/config.base.php'; -return make_phan_config( dirname( __DIR__ ) ); +return make_phan_config( + dirname( __DIR__ ), + array( + 'exclude_file_regex' => array( + 'build/', + ), + ) +); diff --git a/projects/packages/scan/changelog/update-min-wp-to-6.9#2 b/projects/packages/scan/changelog/update-min-wp-to-6.9#2 new file mode 100644 index 000000000000..e398edeb412e --- /dev/null +++ b/projects/packages/scan/changelog/update-min-wp-to-6.9#2 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Exclude wp-build "build" dir from Phan. It's confusing when running CI (where it doesn't exist) versus locally (where it might). + + diff --git a/projects/packages/search/changelog/update-min-wp-to-6.9 b/projects/packages/search/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..9cb45c954861 --- /dev/null +++ b/projects/packages/search/changelog/update-min-wp-to-6.9 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Clean up obsolete phan suppressions now that we dropped WP 6.8 + + diff --git a/projects/packages/search/src/search-blocks/class-custom-taxonomy-slot-mapping.php b/projects/packages/search/src/search-blocks/class-custom-taxonomy-slot-mapping.php index 2049a9fb86e3..3ec645d61ecf 100644 --- a/projects/packages/search/src/search-blocks/class-custom-taxonomy-slot-mapping.php +++ b/projects/packages/search/src/search-blocks/class-custom-taxonomy-slot-mapping.php @@ -341,7 +341,6 @@ public static function backfill( string $mode = 'mirror' ): int { // with no orphans. Map keys are user-side slugs, never slot slugs, // so the inner `delete_term` fires don't recurse. if ( 'rebuild' === $mode ) { - // @phan-suppress-next-line PhanAccessMethodInternal @phan-suppress-current-line UnusedSuppression -- Fixed in WP 6.9, but then we need a suppression for the WP 6.8 compat run. @todo Remove this suppression when we drop WP <6.9. $existing_slot_terms = get_terms( array( 'taxonomy' => $slot, @@ -355,7 +354,6 @@ public static function backfill( string $mode = 'mirror' ): int { } } } - // @phan-suppress-next-line PhanAccessMethodInternal @phan-suppress-current-line UnusedSuppression -- Fixed in WP 6.9, but then we need a suppression for the WP 6.8 compat run. @todo Remove this suppression when we drop WP <6.9. $terms = get_terms( array( 'taxonomy' => $user_slug, diff --git a/projects/packages/stats/changelog/update-min-wp-to-6.9 b/projects/packages/stats/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..9cb45c954861 --- /dev/null +++ b/projects/packages/stats/changelog/update-min-wp-to-6.9 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Clean up obsolete phan suppressions now that we dropped WP 6.8 + + diff --git a/projects/packages/stats/src/abilities/class-stats-abilities.php b/projects/packages/stats/src/abilities/class-stats-abilities.php index 7eacc047ba10..cca1b65453b5 100644 --- a/projects/packages/stats/src/abilities/class-stats-abilities.php +++ b/projects/packages/stats/src/abilities/class-stats-abilities.php @@ -7,8 +7,6 @@ * @package automattic/jetpack-stats */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9; suppressions needed for older-WP compatibility runs. - namespace Automattic\Jetpack\Stats\Abilities; use Automattic\Jetpack\Stats\Options; diff --git a/projects/packages/stats/tests/php/abilities/Stats_Abilities_Test.php b/projects/packages/stats/tests/php/abilities/Stats_Abilities_Test.php index fd720a808737..cb23eb345515 100644 --- a/projects/packages/stats/tests/php/abilities/Stats_Abilities_Test.php +++ b/projects/packages/stats/tests/php/abilities/Stats_Abilities_Test.php @@ -5,8 +5,6 @@ * @package automattic/jetpack-stats */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9. - namespace Automattic\Jetpack\Stats\Abilities; use Automattic\Jetpack\Stats\Main; diff --git a/projects/packages/sync/changelog/update-min-wp-to-6.9 b/projects/packages/sync/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..9cb45c954861 --- /dev/null +++ b/projects/packages/sync/changelog/update-min-wp-to-6.9 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Clean up obsolete phan suppressions now that we dropped WP 6.8 + + diff --git a/projects/packages/sync/src/class-replicastore.php b/projects/packages/sync/src/class-replicastore.php index 4593d23b7f7b..8bb6c41a7652 100644 --- a/projects/packages/sync/src/class-replicastore.php +++ b/projects/packages/sync/src/class-replicastore.php @@ -873,7 +873,6 @@ public function get_terms( $taxonomy ) { if ( ! $t || is_wp_error( $t ) ) { return $t; } - // @phan-suppress-next-line PhanAccessMethodInternal @phan-suppress-current-line UnusedSuppression -- Fixed in WP 6.9, but then we need a suppression for the WP 6.8 compat run. @todo Remove this suppression when we drop WP <6.9. return get_terms( $taxonomy ); } diff --git a/projects/packages/sync/src/modules/class-terms.php b/projects/packages/sync/src/modules/class-terms.php index bcc71b616914..290d09e9ca59 100644 --- a/projects/packages/sync/src/modules/class-terms.php +++ b/projects/packages/sync/src/modules/class-terms.php @@ -343,7 +343,6 @@ public function expand_term_taxonomy_id( $args ) { list( $term_taxonomy_ids, $previous_end ) = $args; return array( - // @phan-suppress-next-line PhanAccessMethodInternal @phan-suppress-current-line UnusedSuppression -- Fixed in WP 6.9, but then we need a suppression for the WP 6.8 compat run. @todo Remove this suppression when we drop WP <6.9. 'terms' => get_terms( array( 'hide_empty' => false, diff --git a/projects/packages/wp-abilities/changelog/update-min-wp-to-6.9 b/projects/packages/wp-abilities/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..9cb45c954861 --- /dev/null +++ b/projects/packages/wp-abilities/changelog/update-min-wp-to-6.9 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Clean up obsolete phan suppressions now that we dropped WP 6.8 + + diff --git a/projects/packages/wp-abilities/src/class-registrar.php b/projects/packages/wp-abilities/src/class-registrar.php index 20f1df4deba1..ef48a8ad15b7 100644 --- a/projects/packages/wp-abilities/src/class-registrar.php +++ b/projects/packages/wp-abilities/src/class-registrar.php @@ -6,7 +6,6 @@ * @package automattic/jetpack-wp-abilities */ -// @phan-file-suppress PhanUndeclaredFunction @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9. We guard with function_exists() checks so the package is safe on older WP. @todo Remove this line when the minimum supported WordPress version is 6.9. // @phan-file-suppress PhanAbstractStaticMethodCallInStatic -- static:: dispatches to the concrete subclass for the three abstract getters; callers must not instantiate Registrar itself. namespace Automattic\Jetpack\WP_Abilities; diff --git a/projects/packages/wp-build-polyfills/changelog/update-min-wp-to-6.9 b/projects/packages/wp-build-polyfills/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..cc9a264cb9ab --- /dev/null +++ b/projects/packages/wp-build-polyfills/changelog/update-min-wp-to-6.9 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Bump wp_version in tests. + + diff --git a/projects/packages/wp-build-polyfills/tests/php/WP_Build_Polyfills_Test.php b/projects/packages/wp-build-polyfills/tests/php/WP_Build_Polyfills_Test.php index f4997c2b03ca..5898e236033f 100644 --- a/projects/packages/wp-build-polyfills/tests/php/WP_Build_Polyfills_Test.php +++ b/projects/packages/wp-build-polyfills/tests/php/WP_Build_Polyfills_Test.php @@ -315,7 +315,7 @@ public function test_register_scripts_skips_wp_theme_when_already_registered() { * Test that wp-notices is force-replaced on WP < 7.0. */ public function test_register_scripts_force_replaces_wp_notices_on_old_wp() { - $GLOBALS['wp_version'] = '6.8'; + $GLOBALS['wp_version'] = '6.9'; $this->create_asset_file( 'scripts/notices/index.asset.php', array(), '9.9.9' ); $scripts = $this->create_clean_scripts(); @@ -332,7 +332,7 @@ public function test_register_scripts_force_replaces_wp_notices_on_old_wp() { * Test that wp-private-apis is force-replaced on WP < 7.0. */ public function test_register_scripts_force_replaces_wp_private_apis_on_old_wp() { - $GLOBALS['wp_version'] = '6.8'; + $GLOBALS['wp_version'] = '6.9'; $this->create_asset_file( 'scripts/private-apis/index.asset.php', array(), '9.9.9' ); $scripts = $this->create_clean_scripts(); @@ -370,7 +370,7 @@ public function test_register_scripts_does_not_force_replace_on_wp_7() { * Test that force scripts register fine even when not pre-existing. */ public function test_register_scripts_force_registers_fresh_on_old_wp() { - $GLOBALS['wp_version'] = '6.8'; + $GLOBALS['wp_version'] = '6.9'; $this->create_asset_file( 'scripts/notices/index.asset.php', array(), '9.9.9' ); $this->create_asset_file( 'scripts/private-apis/index.asset.php', array(), '8.8.8' ); diff --git a/projects/plugins/automattic-for-agencies-client/changelog/update-min-wp-to-6.9 b/projects/plugins/automattic-for-agencies-client/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d72aac85d20c --- /dev/null +++ b/projects/plugins/automattic-for-agencies-client/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/automattic-for-agencies-client/readme.txt b/projects/plugins/automattic-for-agencies-client/readme.txt index eb9fb728db51..a527b85884f7 100644 --- a/projects/plugins/automattic-for-agencies-client/readme.txt +++ b/projects/plugins/automattic-for-agencies-client/readme.txt @@ -1,7 +1,7 @@ === Automattic For Agencies Client === Contributors: automattic, jeherve, njweller, rcanepa Tags: agency, dashboard, management, sites, monitoring -Requires at least: 6.8 +Requires at least: 6.9 Requires PHP: 7.2 Tested up to: 7.0 Stable tag: 0.8.0 diff --git a/projects/plugins/backup/changelog/update-min-wp-to-6.9 b/projects/plugins/backup/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d72aac85d20c --- /dev/null +++ b/projects/plugins/backup/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/backup/readme.txt b/projects/plugins/backup/readme.txt index ee4a3a5a26e0..4c4a39322b92 100644 --- a/projects/plugins/backup/readme.txt +++ b/projects/plugins/backup/readme.txt @@ -1,7 +1,7 @@ === Jetpack VaultPress Backup === Contributors: automattic, bjorsch, fgiannar, initsogar, jeherve, jwebbdev, kraftbj, macbre, pypt, samiff, sermitr, williamvianas Tags: jetpack, backup, restore -Requires at least: 6.8 +Requires at least: 6.9 Requires PHP: 7.2 Tested up to: 7.0 Stable tag: 3.8 diff --git a/projects/plugins/boost/app/abilities/class-boost-abilities.php b/projects/plugins/boost/app/abilities/class-boost-abilities.php index 78243ecaca61..fbbc0e7b3c22 100644 --- a/projects/plugins/boost/app/abilities/class-boost-abilities.php +++ b/projects/plugins/boost/app/abilities/class-boost-abilities.php @@ -9,8 +9,6 @@ * @package automattic/jetpack-boost */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9. We guard with function_exists() checks so the class is safe on older WP. @todo Remove this line when the minimum supported WordPress version is 6.9. - namespace Automattic\Jetpack_Boost\Abilities; use Automattic\Jetpack\Boost_Speed_Score\Speed_Score_History; diff --git a/projects/plugins/boost/changelog/update-min-wp-to-6.9 b/projects/plugins/boost/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d72aac85d20c --- /dev/null +++ b/projects/plugins/boost/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/boost/jetpack-boost.php b/projects/plugins/boost/jetpack-boost.php index 6d841b16fc76..931c2a35a780 100644 --- a/projects/plugins/boost/jetpack-boost.php +++ b/projects/plugins/boost/jetpack-boost.php @@ -16,7 +16,7 @@ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Text Domain: jetpack-boost * Domain Path: /languages - * Requires at least: 6.8 + * Requires at least: 6.9 * Requires PHP: 7.2 * * @package automattic/jetpack-boost diff --git a/projects/plugins/boost/readme.txt b/projects/plugins/boost/readme.txt index 9934e193c4cf..84cfcf8861a5 100644 --- a/projects/plugins/boost/readme.txt +++ b/projects/plugins/boost/readme.txt @@ -2,7 +2,7 @@ Contributors: automattic, xwp, adnan007, bjorsch, danwalmsley, davidlonjon, dilirity, donncha, ebinnion, exelero, jeherve, jpolakovic, karthikbhatb, kraftbj, lsarsfield, luchad0res, pyronaur, rheinardkorf, scruffian, thingalon, dlocc Donate link: https://automattic.com Tags: performance, speed, web vitals, critical css, cache -Requires at least: 6.8 +Requires at least: 6.9 Tested up to: 7.0 Requires PHP: 7.2 Stable tag: 4.5.9 diff --git a/projects/plugins/boost/tests/php/abilities/Boost_Abilities_Test.php b/projects/plugins/boost/tests/php/abilities/Boost_Abilities_Test.php index afecfb9188ba..1604858370ec 100644 --- a/projects/plugins/boost/tests/php/abilities/Boost_Abilities_Test.php +++ b/projects/plugins/boost/tests/php/abilities/Boost_Abilities_Test.php @@ -9,8 +9,6 @@ * @package automattic/jetpack-boost */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9. - namespace Automattic\Jetpack_Boost\Tests\Abilities; use Automattic\Jetpack\WP_Abilities\Registrar; @@ -175,12 +173,6 @@ public function test_init_hooks_lifecycle_actions_when_gate_is_true(): void { } public function test_init_registers_directly_when_lifecycle_actions_already_fired(): void { - // Spy assertions key off should_register(), which Registrar guards behind - // function_exists() checks for the WP 6.9+ Abilities API surface. - if ( ! function_exists( 'wp_register_ability_category' ) || ! function_exists( 'wp_register_ability' ) ) { - $this->markTestSkipped( 'Abilities API not available (WP < 6.9).' ); - } - // Simulate a late-loading deployment: the lifecycle actions ran before our init(). do_action( Registrar::CATEGORIES_INIT_ACTION ); do_action( Registrar::ABILITIES_INIT_ACTION ); @@ -213,10 +205,6 @@ public function test_init_registers_directly_when_lifecycle_actions_already_fire } public function test_register_abilities_registers_every_slug(): void { - if ( ! function_exists( 'wp_get_abilities' ) || ! function_exists( 'wp_register_ability' ) ) { - $this->markTestSkipped( 'Abilities API not available (WP < 6.9).' ); - } - // `wp_register_ability_category` and `wp_register_ability` only run inside their // respective lifecycle actions; firing them directly mirrors what core does. Boost_Abilities::init(); @@ -232,10 +220,6 @@ public function test_register_abilities_registers_every_slug(): void { } public function test_register_abilities_injects_category_on_specs_that_omit_it(): void { - if ( ! function_exists( 'wp_get_abilities' ) || ! function_exists( 'wp_register_ability' ) ) { - $this->markTestSkipped( 'Abilities API not available (WP < 6.9).' ); - } - Boost_Abilities::init(); do_action( Registrar::CATEGORIES_INIT_ACTION ); do_action( Registrar::ABILITIES_INIT_ACTION ); @@ -248,10 +232,6 @@ public function test_register_abilities_injects_category_on_specs_that_omit_it() } public function test_per_ability_allow_list_filter_is_respected(): void { - if ( ! function_exists( 'wp_get_abilities' ) || ! function_exists( 'wp_register_ability' ) ) { - $this->markTestSkipped( 'Abilities API not available (WP < 6.9).' ); - } - add_filter( 'jetpack_wp_abilities_should_register', static function ( $enabled, $type, $_slug ) { diff --git a/projects/plugins/classic-theme-helper-plugin/changelog/update-min-wp-to-6.9 b/projects/plugins/classic-theme-helper-plugin/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d72aac85d20c --- /dev/null +++ b/projects/plugins/classic-theme-helper-plugin/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/classic-theme-helper-plugin/readme.txt b/projects/plugins/classic-theme-helper-plugin/readme.txt index 5478f9bd6fba..cabc91cbab54 100644 --- a/projects/plugins/classic-theme-helper-plugin/readme.txt +++ b/projects/plugins/classic-theme-helper-plugin/readme.txt @@ -1,7 +1,7 @@ === Jetpack Classic Theme Helper Plugin === Contributors: automattic, Tags: jetpack, stuff -Requires at least: 6.8 +Requires at least: 6.9 Requires PHP: 7.2 Tested up to: 7.0 Stable tag: 0.1.0-alpha diff --git a/projects/plugins/crm/changelog/update-min-wp-to-6.9 b/projects/plugins/crm/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..fccde82ac049 --- /dev/null +++ b/projects/plugins/crm/changelog/update-min-wp-to-6.9 @@ -0,0 +1,5 @@ +Significance: patch +Type: changed +Comment: Bump `ZeroBSCRM->wp_tested` to 7.0, which was missed in #48114 + + diff --git a/projects/plugins/crm/includes/ZeroBSCRM.Core.php b/projects/plugins/crm/includes/ZeroBSCRM.Core.php index d503d64d9d9f..d91770085f68 100644 --- a/projects/plugins/crm/includes/ZeroBSCRM.Core.php +++ b/projects/plugins/crm/includes/ZeroBSCRM.Core.php @@ -39,7 +39,7 @@ final class ZeroBSCRM { * * @var string */ - public $wp_tested = '6.9'; + public $wp_tested = '7.0'; /** * WordPress update API version. diff --git a/projects/plugins/inspect/changelog/update-min-wp-to-6.9 b/projects/plugins/inspect/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d72aac85d20c --- /dev/null +++ b/projects/plugins/inspect/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/inspect/jetpack-inspect.php b/projects/plugins/inspect/jetpack-inspect.php index c77645e88955..f28201b17f18 100644 --- a/projects/plugins/inspect/jetpack-inspect.php +++ b/projects/plugins/inspect/jetpack-inspect.php @@ -12,7 +12,7 @@ * Description: Inspect HTTP incoming and outgoing requests and responses. * Author: pyronaur * Author URI: https://automattic.com - * Requires at least: 6.8 + * Requires at least: 6.9 * Text Domain: jetpack-inspect * * @package automattic/jetpack-inspect diff --git a/projects/plugins/inspect/readme.txt b/projects/plugins/inspect/readme.txt index 228f1b8e7e3c..71e48d68816c 100644 --- a/projects/plugins/inspect/readme.txt +++ b/projects/plugins/inspect/readme.txt @@ -1,7 +1,7 @@ === Jetpack inspect === Contributors: automattic, Tags: jetpack, stuff -Requires at least: 6.8 +Requires at least: 6.9 Requires PHP: 7.2 Tested up to: 7.0 Stable tag: 2.0.0-a.11 diff --git a/projects/plugins/jetpack/_inc/lib/class-jetpack-podcast-feed-locator.php b/projects/plugins/jetpack/_inc/lib/class-jetpack-podcast-feed-locator.php index e95347474185..357a777b5dec 100644 --- a/projects/plugins/jetpack/_inc/lib/class-jetpack-podcast-feed-locator.php +++ b/projects/plugins/jetpack/_inc/lib/class-jetpack-podcast-feed-locator.php @@ -14,16 +14,14 @@ */ class Jetpack_Podcast_Feed_Locator extends SimplePie\Locator { - // @todo WordPress 6.9 changed `$file` from class `SimplePie\File` to interface `SimplePie\HTTP\Response` (which is implemented by `SimplePie\File`). Update declaration once we drop support for WordPress <6.9. /** * Overrides the locator is_feed function to check for * appropriate podcast elements. * - * @param SimplePie\File|SimplePie\HTTP\Response $file The file being checked. - * @param boolean $check_html Adds text/html to the mimetypes checked. + * @param SimplePie\HTTP\Response $file The file being checked. + * @param boolean $check_html Adds text/html to the mimetypes checked. */ public function is_feed( $file, $check_html = false ) { - // @phan-suppress-previous-line PhanUndeclaredTypeParameter @phan-suppress-current-line UnusedSuppression -- Suppression for the WP 6.8 run. @todo Remove this line when we drop WP <6.9. return parent::is_feed( $file, $check_html ) && $file instanceof SimplePie\File && $this->is_podcast_feed( $file ); @@ -42,9 +40,8 @@ private function is_podcast_feed( $file ) { return true; } - // @todo Drop is_callable check once we drop support for WordPress <6.9 + // @todo Drop is_callable check once Simple gets the SimplePie update that came with WordPress 6.9. if ( is_callable( array( $file, 'get_body_content' ) ) ) { - // @phan-suppress-next-line PhanUndeclaredMethod @phan-suppress-current-line UnusedSuppression -- Tested above. @todo Remove this suppression when we drop WP <6.9. $feed_dom = $this->safely_load_xml( $file->get_body_content() ); } else { // @phan-suppress-next-line PhanDeprecatedProperty -- For compatibility only. diff --git a/projects/plugins/jetpack/_inc/lib/class-jetpack-top-posts-helper.php b/projects/plugins/jetpack/_inc/lib/class-jetpack-top-posts-helper.php index c64feea56b62..1835e11b0fd2 100644 --- a/projects/plugins/jetpack/_inc/lib/class-jetpack-top-posts-helper.php +++ b/projects/plugins/jetpack/_inc/lib/class-jetpack-top-posts-helper.php @@ -110,7 +110,7 @@ function ( $item ) { if ( $post['public'] ) { $top_post = array( 'id' => $post_id, - 'author' => get_the_author_meta( 'display_name', get_post_field( 'post_author', $post_id ) ), // @phan-suppress-current-line PhanTypeMismatchArgument @phan-suppress-current-line UnusedSuppression -- Fixed in WP 6.9, but then we need a suppression for the WP 6.8 compat run. @todo Remove this suppression when we drop WP <6.9. + 'author' => get_the_author_meta( 'display_name', get_post_field( 'post_author', $post_id ) ), 'context' => get_the_category( $post_id ) ? get_the_category( $post_id ) : get_the_tags( $post_id ), 'href' => $post['href'], 'date' => get_the_date( '', $post_id ), diff --git a/projects/plugins/jetpack/changelog/update-min-wp-to-6.9 b/projects/plugins/jetpack/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..cbdc61f5e175 --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: major + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/jetpack/jetpack.php b/projects/plugins/jetpack/jetpack.php index afde47aa6267..81999054cc8c 100644 --- a/projects/plugins/jetpack/jetpack.php +++ b/projects/plugins/jetpack/jetpack.php @@ -8,7 +8,7 @@ * Author URI: https://jetpack.com * License: GPL2+ * Text Domain: jetpack - * Requires at least: 6.8 + * Requires at least: 6.9 * Requires PHP: 7.2 * * @package automattic/jetpack @@ -39,7 +39,7 @@ // This breaks the project version checks when a one-liner. define( 'JETPACK__VERSION', '15.9-a.5' ); } -defined( 'JETPACK__MINIMUM_WP_VERSION' ) || define( 'JETPACK__MINIMUM_WP_VERSION', '6.8' ); +defined( 'JETPACK__MINIMUM_WP_VERSION' ) || define( 'JETPACK__MINIMUM_WP_VERSION', '6.9' ); defined( 'JETPACK__MINIMUM_PHP_VERSION' ) || define( 'JETPACK__MINIMUM_PHP_VERSION', '7.2' ); /** diff --git a/projects/plugins/jetpack/modules/related-posts/abilities/class-related-posts-abilities.php b/projects/plugins/jetpack/modules/related-posts/abilities/class-related-posts-abilities.php index 9614e49ef56f..469878e6f720 100644 --- a/projects/plugins/jetpack/modules/related-posts/abilities/class-related-posts-abilities.php +++ b/projects/plugins/jetpack/modules/related-posts/abilities/class-related-posts-abilities.php @@ -7,8 +7,6 @@ * @package automattic/jetpack */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9; suppressions needed for older-WP compatibility runs. - namespace Automattic\Jetpack\Plugin\Abilities; use Automattic\Jetpack\WP_Abilities\Registrar; diff --git a/projects/plugins/jetpack/modules/subscriptions/abilities/class-newsletter-abilities.php b/projects/plugins/jetpack/modules/subscriptions/abilities/class-newsletter-abilities.php index 19ba37a024f9..c39dc67e5bce 100644 --- a/projects/plugins/jetpack/modules/subscriptions/abilities/class-newsletter-abilities.php +++ b/projects/plugins/jetpack/modules/subscriptions/abilities/class-newsletter-abilities.php @@ -8,8 +8,6 @@ * @package automattic/jetpack */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9. - namespace Automattic\Jetpack\Plugin\Abilities; use Automattic\Jetpack\Connection\Client; diff --git a/projects/plugins/jetpack/readme.txt b/projects/plugins/jetpack/readme.txt index 75662ebbdc69..21a15a667efa 100644 --- a/projects/plugins/jetpack/readme.txt +++ b/projects/plugins/jetpack/readme.txt @@ -2,7 +2,7 @@ Contributors: automattic, adamkheckler, adrianmoldovanwp, aduth, akirk, allendav, alternatekev, andy, annamcphee, annezazu, apeatling, arcangelini, arsihasi, azaozz, barry, batmoo, beaulebens, bindlegirl, biskobe, bjorsch, blobaugh, brbrr, brileyhooper, cainm, cena, cfinke, cgastrell, chaselivingston, chellycat, clickysteve, csonnek, danielbachhuber, daniloercoli, davoraltman, delawski, designsimply, dkmyta, dllh, dlocc, drawmyface, dsmart, dun2mis, dzver, ebinnion, egregor, eliorivero, enej, eoigal, erania-pinnera, ethitter, fgiannar, gcorne, georgestephanis, gibrown, goldsounds, hew, hugobaeta, hypertextranch, iammattthomas, iandunn, joen, jblz, jeffgolenski, jeherve, jennywp, jenia, jessefriedman, jgs, jkudish, jmdodd, joanrho, johnjamesjacoby, jshreve, kbrownkd, keoshi, koke, kraftbj, lancewillett, leogermani, lhkowalski, lschuyler, macmanx, martinremy, matt, mattwiebe, matveb, maverick3x6, mcsf, mdawaffe, mdbitz, MichaelArestad, migueluy, miguelxavierpenha, mikeyarce, mkaz, nancythanki, nickmomrik, njweller, nunyvega, obenland, oskosk, pento, professor44, rachelsquirrel, rdcoll, renatoagds, retrofox, richardmtl, richardmuscat, robertbpugh, roccotripaldi, ryanc413, samhotchkiss, samiff, scarstocea, scottsweb, sdixon194, sdquirk, sermitr, simison, stephdau, thehenridev, tmoorewp, tyxla, Viper007Bond, westi, williamvianas, wpkaren, yoavf, zinigor Tags: Security, backup, malware, scan, performance Stable tag: 15.9-a.5 -Requires at least: 6.8 +Requires at least: 6.9 Requires PHP: 7.2 Tested up to: 7.0 License: GPLv2 or later diff --git a/projects/plugins/jetpack/src/abilities/class-modules-abilities.php b/projects/plugins/jetpack/src/abilities/class-modules-abilities.php index f6557dd7ffec..f189cb62fb63 100644 --- a/projects/plugins/jetpack/src/abilities/class-modules-abilities.php +++ b/projects/plugins/jetpack/src/abilities/class-modules-abilities.php @@ -7,8 +7,6 @@ * @package automattic/jetpack */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9; suppressions needed for older-WP compatibility runs. - namespace Automattic\Jetpack\Plugin\Abilities; use Automattic\Jetpack\WP_Abilities\Registrar; diff --git a/projects/plugins/jetpack/tests/php/modules/subscriptions/Newsletter_Abilities_Test.php b/projects/plugins/jetpack/tests/php/modules/subscriptions/Newsletter_Abilities_Test.php index 9db2b4260535..ca32335be2b8 100644 --- a/projects/plugins/jetpack/tests/php/modules/subscriptions/Newsletter_Abilities_Test.php +++ b/projects/plugins/jetpack/tests/php/modules/subscriptions/Newsletter_Abilities_Test.php @@ -5,8 +5,6 @@ * @package automattic/jetpack */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9. - require_once __DIR__ . '/../../../../modules/subscriptions/abilities/class-newsletter-abilities.php'; use Automattic\Jetpack\Plugin\Abilities\Newsletter_Abilities; diff --git a/projects/plugins/jetpack/tests/php/src/Modules_Abilities_Test.php b/projects/plugins/jetpack/tests/php/src/Modules_Abilities_Test.php index 7e04d484a492..06638fae3b8d 100644 --- a/projects/plugins/jetpack/tests/php/src/Modules_Abilities_Test.php +++ b/projects/plugins/jetpack/tests/php/src/Modules_Abilities_Test.php @@ -5,8 +5,6 @@ * @package automattic/jetpack */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9. - use Automattic\Jetpack\Plugin\Abilities\Modules_Abilities; use Automattic\Jetpack\WP_Abilities\Registrar; use PHPUnit\Framework\Attributes\CoversClass; diff --git a/projects/plugins/jetpack/tests/php/src/Related_Posts_Abilities_Test.php b/projects/plugins/jetpack/tests/php/src/Related_Posts_Abilities_Test.php index 42de7bd15e47..b55696dd85c0 100644 --- a/projects/plugins/jetpack/tests/php/src/Related_Posts_Abilities_Test.php +++ b/projects/plugins/jetpack/tests/php/src/Related_Posts_Abilities_Test.php @@ -5,8 +5,6 @@ * @package automattic/jetpack */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9. - use Automattic\Jetpack\Plugin\Abilities\Related_Posts_Abilities; use PHPUnit\Framework\Attributes\CoversClass; diff --git a/projects/plugins/jetpack/tests/php/src/Shortlinks_Abilities_Test.php b/projects/plugins/jetpack/tests/php/src/Shortlinks_Abilities_Test.php index 0e0121ea26ed..be0fc390c6c7 100644 --- a/projects/plugins/jetpack/tests/php/src/Shortlinks_Abilities_Test.php +++ b/projects/plugins/jetpack/tests/php/src/Shortlinks_Abilities_Test.php @@ -5,8 +5,6 @@ * @package automattic/jetpack */ -// @phan-file-suppress PhanUndeclaredFunction, PhanUndeclaredClassMethod @phan-suppress-current-line UnusedSuppression -- Abilities API added in WP 6.9. - use Automattic\Jetpack\Plugin\Abilities\Shortlinks_Abilities; use Automattic\Jetpack\WP_Abilities\Registrar; use PHPUnit\Framework\Attributes\CoversClass; diff --git a/projects/plugins/paypal-payment-buttons/changelog/update-min-wp-to-6.9 b/projects/plugins/paypal-payment-buttons/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d72aac85d20c --- /dev/null +++ b/projects/plugins/paypal-payment-buttons/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/paypal-payment-buttons/readme.txt b/projects/plugins/paypal-payment-buttons/readme.txt index 4bb487d636c7..a20f70e4964c 100644 --- a/projects/plugins/paypal-payment-buttons/readme.txt +++ b/projects/plugins/paypal-payment-buttons/readme.txt @@ -1,7 +1,7 @@ === PayPal Payment Buttons === Contributors: paypal,automattic,woocommerce Tags: paypal, payments, ecommerce, blocks, checkout -Requires at least: 6.8 +Requires at least: 6.9 Requires PHP: 7.2 Tested up to: 7.0 Stable tag: 0.4.0 diff --git a/projects/plugins/premium-analytics/changelog/update-min-wp-to-6.9 b/projects/plugins/premium-analytics/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d4273ba2d5f3 --- /dev/null +++ b/projects/plugins/premium-analytics/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +Update minimum and tested-up-to WordPress versions. diff --git a/projects/plugins/premium-analytics/readme.txt b/projects/plugins/premium-analytics/readme.txt index a2289bfe320d..79b913752708 100644 --- a/projects/plugins/premium-analytics/readme.txt +++ b/projects/plugins/premium-analytics/readme.txt @@ -1,9 +1,9 @@ === Jetpack Premium Analytics === Contributors: automattic Tags: analytics, jetpack -Requires at least: 6.6 +Requires at least: 6.9 Requires PHP: 7.2 -Tested up to: 6.8 +Tested up to: 7.0 Stable tag: 0.1.0-alpha License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html diff --git a/projects/plugins/protect/changelog/update-min-wp-to-6.9 b/projects/plugins/protect/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d72aac85d20c --- /dev/null +++ b/projects/plugins/protect/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/protect/readme.txt b/projects/plugins/protect/readme.txt index a1bab44a4704..935ba40b7bb7 100644 --- a/projects/plugins/protect/readme.txt +++ b/projects/plugins/protect/readme.txt @@ -1,7 +1,7 @@ === Jetpack Protect === Contributors: automattic, retrofox, leogermani, renatoagds, bjorsch, ebinnion, fgiannar, zinigor, miguelxavierpenha, dsmart, jeherve, manzoorwanijk, njweller, oskosk, samiff, siddarthan, wpkaren, arsihasi, kraftbj, kev, sermitr, kangzj, pabline, dkmyta Tags: jetpack, protect, security, malware, scan -Requires at least: 6.8 +Requires at least: 6.9 Requires PHP: 7.2 Tested up to: 7.0 Stable tag: 5.0.0 diff --git a/projects/plugins/search/changelog/update-min-wp-to-6.9 b/projects/plugins/search/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d72aac85d20c --- /dev/null +++ b/projects/plugins/search/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/search/readme.txt b/projects/plugins/search/readme.txt index 30a5d3afdcb9..436d7505dbb7 100644 --- a/projects/plugins/search/readme.txt +++ b/projects/plugins/search/readme.txt @@ -1,7 +1,7 @@ === Jetpack Search === Contributors: automattic, annamcphee, bluefuton, kangzj, jsnmoon, robfelty, gibrown, trakos, dognose24, a8ck3n Tags: search, filter, woocommerce search, ajax search, product search, free cloud-based search -Requires at least: 6.8 +Requires at least: 6.9 Requires PHP: 7.2 Tested up to: 7.0 Stable tag: 6.0.0 diff --git a/projects/plugins/social/changelog/update-min-wp-to-6.9 b/projects/plugins/social/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d72aac85d20c --- /dev/null +++ b/projects/plugins/social/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/social/readme.txt b/projects/plugins/social/readme.txt index 49d4161cf302..66925541b116 100644 --- a/projects/plugins/social/readme.txt +++ b/projects/plugins/social/readme.txt @@ -1,7 +1,7 @@ === Jetpack Social === Contributors: automattic, pabline, siddarthan, gmjuhasz, manzoorwanijk Tags: social media automation, social media scheduling, auto share, social sharing, social media marketing -Requires at least: 6.8 +Requires at least: 6.9 Requires PHP: 7.2 Tested up to: 7.0 Stable tag: 8.0.1 diff --git a/projects/plugins/starter-plugin/changelog/update-min-wp-to-6.9 b/projects/plugins/starter-plugin/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d72aac85d20c --- /dev/null +++ b/projects/plugins/starter-plugin/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/starter-plugin/readme.txt b/projects/plugins/starter-plugin/readme.txt index 31e79345b503..f2cca6158ab7 100644 --- a/projects/plugins/starter-plugin/readme.txt +++ b/projects/plugins/starter-plugin/readme.txt @@ -1,7 +1,7 @@ === Jetpack Starter Plugin === Contributors: automattic, Tags: jetpack, stuff -Requires at least: 6.8 +Requires at least: 6.9 Requires PHP: 7.2 Tested up to: 7.0 Stable tag: 0.10.0 diff --git a/projects/plugins/videopress/changelog/update-min-wp-to-6.9 b/projects/plugins/videopress/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d72aac85d20c --- /dev/null +++ b/projects/plugins/videopress/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/videopress/readme.txt b/projects/plugins/videopress/readme.txt index 08dd82673e56..be0e887e32ee 100644 --- a/projects/plugins/videopress/readme.txt +++ b/projects/plugins/videopress/readme.txt @@ -1,7 +1,7 @@ === Jetpack VideoPress === Contributors: automattic, retrofox, oskosk, thehenridev, renatoagds, lhkowalski, nunyvega, leogermani, cgastrell Tags: video, video-hosting, video-player, cdn, video-streaming -Requires at least: 6.8 +Requires at least: 6.9 Tested up to: 7.0 Stable tag: 3.1 Requires PHP: 7.2 diff --git a/projects/plugins/wpcloud-sso/changelog/update-min-wp-to-6.9 b/projects/plugins/wpcloud-sso/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d72aac85d20c --- /dev/null +++ b/projects/plugins/wpcloud-sso/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/wpcloud-sso/readme.txt b/projects/plugins/wpcloud-sso/readme.txt index 437a726ecc16..eabc708c2a48 100644 --- a/projects/plugins/wpcloud-sso/readme.txt +++ b/projects/plugins/wpcloud-sso/readme.txt @@ -1,6 +1,6 @@ === Jetpack_WPCloud_SSO === Contributors: automattic -Requires at least: 6.8 +Requires at least: 6.9 Requires PHP: 7.2 Tested up to: 7.0 Stable tag: 0.1.0-alpha diff --git a/projects/plugins/wpcomsh/changelog/update-min-wp-to-6.9 b/projects/plugins/wpcomsh/changelog/update-min-wp-to-6.9 new file mode 100644 index 000000000000..d72aac85d20c --- /dev/null +++ b/projects/plugins/wpcomsh/changelog/update-min-wp-to-6.9 @@ -0,0 +1,4 @@ +Significance: major +Type: changed + +General: Update minimum WordPress version to 6.9. diff --git a/projects/plugins/wpcomsh/readme.txt b/projects/plugins/wpcomsh/readme.txt index de17ff4ead89..6f212932fb26 100644 --- a/projects/plugins/wpcomsh/readme.txt +++ b/projects/plugins/wpcomsh/readme.txt @@ -1,7 +1,7 @@ === WP.com Site Helper === Contributors: lamosty, obenland, automattic Tags: WP.com -Requires at least: 6.8 +Requires at least: 6.9 Requires PHP: 7.4 Tested up to: 7.0 Stable tag: 9.0.0 diff --git a/tools/cli/commands/generate.js b/tools/cli/commands/generate.js index 43a3774a2089..57952ecb705f 100644 --- a/tools/cli/commands/generate.js +++ b/tools/cli/commands/generate.js @@ -1002,7 +1002,7 @@ function createReadMeTxt( answers ) { `=== Jetpack ${ answers.name } ===\n` + 'Contributors: automattic,\n' + 'Tags: jetpack, stuff\n' + - 'Requires at least: 6.8\n' + + 'Requires at least: 6.9\n' + 'Requires PHP: 7.2\n' + 'Tested up to: 7.0\n' + `Stable tag: ${ answers.version }\n` +