Skip to content

Commit

Permalink
Jetpack 13.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
zinigor authored and matticbot committed Oct 1, 2024
1 parent 3de461f commit a7e081c
Show file tree
Hide file tree
Showing 29 changed files with 176 additions and 151 deletions.
150 changes: 63 additions & 87 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,132 +2,108 @@

### This is a list detailing changes for all Jetpack releases.

## 13.9-beta - 2024-09-30
## 13.9 - 2024-10-01
### Major Enhancements
- Jetpack plugin: Remove the 'WordPress.com Toolbar' module. [#39406]

### Enhancements
- Blocks: Transition from an option to a module to improve caching. [#39449]
- Jetpack AI: Add AI SEO title optimization. [#39363]
- Jetpack Stats: Do not check for capabilities if the user is not signed in when deciding whether to show the admin bar widget. [#39402]
- My Jetpack: Visual update to the GlobalNotice component for better mobile presentation. [#39537]
- Performance: Set the concatenated CSS to off by default. The era where this was helpful is passing. [#39486]
- SSO: Remove legacy codebase in favor of the newer SSO codebase introduced in Jetpack 13.5. [#39327]

### Improved compatibility
- Dashboard: Disable portfolio toggle if theme supports portfolio for specific environments. [#39508]

### Bug fixes
- Ai Assistant: Do not show Jetpack AI excerpt UI outside of correct context. [#39248]
- AI Assistant: Fix Write Brief highlight position on spelling mistake following ignored special word. [#39282]
- AI Assistant: Remove autofocus on extended blocks while previewing. [#39216]
- AI Content Lens: Fix the feature of the AI Content Lens is gone. [#39292]
- Blocks: Prevent Memberships blocks from being registered when the site is not connected to Jetpack. [#39390]
- Dashboard: Display the yearly Stats plan in the Jetpack dashboard immediately after you've purchased the plan. [#39326]
- Help Center: Fix the icon color when previewing color scheme. [#39371]
- Hosting Configuration: Make the menu title under the settings the same as the destination. [#39183]
- Jetpack REST API: Fix missing requirement in admin-menu endpoint. [#39256]
- Shortcode: Fix the YouTube URL embedding failure due to the trailing question mark of the ID. [#39309]
- Shortcode: Fix the YouTube URL for the private videos. [#39454]
- Shortcode: Fix the YouTube URL for the `/embed` type. [#39502]
- Sidebar: Show correct product name for "VaultPress Backup". [#39203]
- Social: Fix social previews button sometimes not fitting all the text. [#39430]
- Subscriptions: Fix added slashes in the Follow Blog widget. [#39433]
- WooCommerce Analytics: Check whether a constant is defined before attempting to use it, for compatibility with WooCommerce <8.4.0. [#39306]

### Other changes <!-- Non-user-facing changes go here. This section will not be copied to readme.txt. -->
- A4A: Add `is_a4a_dev_site` to `jetpack_response_field_additions`. [#39373]
- AI Assistant: Optimize repeated requests for unavailable WPCOM. [#39218]
- AI Assistant: Remove dead code from transformative extensions. [#39245]
- AI Assistant: Update empty help text for Write Brief. [#39204]
- Akismet/Anti-spam: Always use Akismet logo in plugin header. [#39047]
- Blocks: Fix 'Division by zero' fatal error in the Story block. [#39577]
- Blocks: Get active element or selection from target element's document instead of the global `document`. [#39364]
- Build: Do not ship TypeScript files in the production version of Jetpack. [#39428]
- Connection: Move features enabled rest endpoint into the Jetpack plugin. [#39475]
- Content Options: Ensure the feature is loaded via the Classic Theme Helper package instead of Jetpack module. [#39210]
- Custom Content Types: Require feature along with portfolios from the Classic Theme Helper package. [#39268]
- Custom CSS: Remove outdated link from admin menu. [#39169]
- Dashboard: Add icons for all product cards. [#39513]
- Dashboard: Clean and deprecate unused functionality on Jetpack admin pages. [#39547]
- Dashboard: Enable Users -> Profile on all sites. [#39181]
- Dashboard: Make dashboard gracefully fail when user data fetch failed. [#39179]
- Dashboard: Only display the Jetpack menu for contributor roles and above. [#39081]
- Dashboard: Remove deprecated IDC flag from admin pages. [#39531]
- Dashboard: Remove user connection nudges where they aren't needed. Add user connection nudges where needed. [#39533]
- General: Added test instructions for Jetpack 13.9. [#39481]
- Infinite scroll: Remove unused code. [#39570]
- Jetpack AI: Add the beta flag to support styles dropdown on the logo generator. [#39510]
- Jetpack AI: Pass prop/flag to `showStyleSelector` on the logo generator modal. [#39530]
- Jetpack AI: Show button label on logo block toolbar if site's logo is empty. [#39550]
- Jetpack WAF: Removed deprecation notice as the firewall feature will not be removed in the next release. [#39568]
- Social: Remove excessive hook from social logos and genericons. [#39564]
- Stats: Remove user connection nudge from Stats module on the dashboard. [#39496]
- Title Optimization: improve button behaviors when handling errors. [#39554]
- Write Brief: Turn spelling mistakes and long sentences on by default when the tool is enabled. [#39495]

## 13.9-a.7 - 2024-09-23
### Enhancements
- Jetpack AI: Add AI SEO title optimization. [#39363]

### Bug fixes
- Shortcode: Fix the YouTube URL for the private videos. [#39454]
- Social: Fix social previews button sometimes not fitting all the text. [#39430]
- Blocks: Prevent Memberships blocks from being registered when the site is not connected to Jetpack. [#39390]

### Other changes <!-- Non-user-facing changes go here. This section will not be copied to readme.txt. -->
- Blocks: Get active element or selection from target element's document instead of the global `document`. [#39364]
- Build: Do not ship TypeScript files in the production version of Jetpack. [#39428]
- Connection: Move features enabled rest endpoint into the Jetpack plugin. [#39475]
- Deprecated Jetpack Onboarding system. [#39229]
- Email preview: Fix disabling pointer events preventing scroll in Firefox. [#39457]
- General: Added test instructions for Jetpack 13.9. [#39481]
- General: Create the 'features/available' REST endpoint. [#39442]
- General: Move leading and trailing spaces out of i18n messages. Use en-dash for numeric ranges in i18n messages. [#39305]
- General: Replace error triggering with thrown exceptions for PHP 8.4 compatibility. [#39187]
- General: Send non-connected users to a "connect after checkout" flow. [#39444]
- General: Updated connection js to load its bundle via connection package. [#38877]
- General: Use React properties rather than pass-throughs (e.g. `className` rather than `class`). [#39414]
- Infinite scroll: Remove unused code. [#39570]
- Jetpack AI: Add the beta flag to support styles dropdown on the logo generator. [#39510]
- Jetpack AI: Fix checkout URL redirect to the right yearly product. [#39323]
- Jetpack AI: Pass prop/flag to `showStyleSelector` on the logo generator modal. [#39530]
- Jetpack AI: Point upgrade links and buttons to checkout instead of product interstitial. [#39469]
- Jetpack AI: Remove ai-image and ai-paragraph block code since they are not used and never made it to an actual functional block. [#39304]
- Jetpack AI: Remove style parameter from image generation requests until we mean it. [#39494]
- Jetpack AI: Show button label on logo block toolbar if site's logo is empty. [#39550]
- Jetpack AI: Use custom placeholders on the Jetpack Form AI extension input component. [#39482]
- Jetpack sync: Gutenberg footnotes meta. [#38878]
- Jetpack WAF: Removed deprecation notice as the firewall feature will not be removed in the next release. [#39568]
- Launchpad: Support Launchpad experiment. [#39237]
- Newsletters: UI changes to a not yet released feature. [#39079]
- Premium Content: Remove checks for deprecated function. [#39319]
- Removed launchpad-save-modal. [#39429]
- REST API: Added social share status endpoint for WPCOM. [#39490]
- SubscribeBlock: Fix white-space issues. [#39478]
- Subscription widget: Fix PHP warnings. [#39458]
- WP.com: Ensure portfolios are enabled and working properly on themes that support portfolios. [#39431]

## 13.9-a.5 - 2024-09-16
### Enhancements
- Jetpack Stats: Do not check for capabilities if the user is not signed in when deciding whether to show the admin bar widget. [#39402]
- SSO: Remove legacy codebase in favor of the newer SSO codebase introduced in Jetpack 13.5. [#39327]

### Bug fixes
- Dashboard: Display the yearly Stats plan in the Jetpack dashboard immediately after you've purchased the plan. [#39326]
- Help Center: Fix the icon color when previewing color scheme. [#39371]
- Shortcode: Fix the YouTube URL embedding failure due to the trailing question mark of the ID. [#39309]

### Other changes <!-- Non-user-facing changes go here. This section will not be copied to readme.txt. -->
- A4A: Add `is_a4a_dev_site` to `jetpack_response_field_additions`. [#39373]
- Content Options: Ensure the feature is loaded via the Classic Theme Helper package instead of Jetpack module. [#39210]
- Custom Content Types: Require feature along with portfolios from the Classic Theme Helper package. [#39268]
- Jetpack AI: Fix checkout URL redirect to the right yearly product. [#39323]
- Jetpack AI: Remove ai-image and ai-paragraph block code since they are not used and never made it to an actual functional block. [#39304]
- Launchpad: Support Launchpad experiment. [#39237]
- General: Move leading and trailing spaces out of i18n messages. Use en-dash for numeric ranges in i18n messages. [#39305]
- SEO: Open SEO upsell post in help center. [#39339]
- Social: Cleaned up media auto-conversion backend logic. [#38587]
- Social: Migrated useAdminUiV1 feature flag to new script data. [#39137]
- Styles: Update styling for external links. [#39337]
- Terms of Service: optimize initialization. [#39286]
- Title Optimization: Handle enter/return key to trigger a generation when they are pressed. [#39399]
- Title Optimization: Properly handle errors and show the correct UI for each. [#39340]
- Updated package dependencies. [#39332]

## 13.9-a.3 - 2024-09-10
### Bug fixes
- WooCommerce Analytics: Check whether a constant is defined before attempting to use it, for compatibility with WooCommerce <8.4.0. [#39306]

### Other changes <!-- Non-user-facing changes go here. This section will not be copied to readme.txt. -->
- Premium Content: Remove checks for deprecated function. [#39319]
- Updated package dependencies. [#39302]

## 13.9-a.1 - 2024-09-09
### Bug fixes
- AI Assistant: Remove autofocus on extended blocks while previewing. [#39216]
- Ai Assistant: Do not show Jetpack AI excerpt UI outside of correct context. [#39248]
- AI Assistant: Fix Write Brief highlight position on spelling mistake following ignored special word. [#39282]
- AI Content Lens: Fix the feature of the AI Content Lens is gone. [#39292]
- Hosting Configuration: Make the menu title under the settings the same as the destination. [#39183]
- Jetpack REST API: Fix missing requirement in admin-menu endpoint. [#39256]
- Sidebar: Show correct product name for "VaultPress Backup". [#39203]

### Other changes <!-- Non-user-facing changes go here. This section will not be copied to readme.txt. -->
- AI Assistant: Optimize repeated requests for unavailable WPCOM. [#39218]
- AI Assistant: Remove dead code from transformative extensions. [#39245]
- AI Assistant: Update empty help text for Write Brief. [#39204]
- Akismet/Anti-spam: Always use Akismet logo in plugin header. [#39047]
- Custom CSS: Remove outdated link from admin menu. [#39169]
- Dashboard: Only display the Jetpack menu for contributor roles and above. [#39081]
- Dashboard: Enable Users -> Profile on all sites. [#39181]
- Deprecated Jetpack Onboarding system. [#39229]
- Dashboard: Make dashboard gracefully fail when user data fetch failed. [#39179]
- Jetpack sync: Gutenberg footnotes meta. [#38878]
- General: Replace error triggering with thrown exceptions for PHP 8.4 compatibility. [#39187]
- General: Updated connection js to load its bundle via connection package. [#38877]
- Newsletters: UI changes to a not yet released feature. [#39079]
- Site Settings API: Include is_fully_managed_agency_site site option in the response, and allow for its modification. [#39223]
- Social: Added a way to reshare in an asynchronous way. [#39227]
- Social: Cleaned up media auto-conversion backend logic. [#38587]
- Social: Migrated useAdminUiV1 feature flag to new script data. [#39137]
- Social: Remove excessive hook from social logos and genericons. [#39564]
- Stats: Fix the 'invalid date' error on new site stats. [#39284]
- Stats: Remove user connection nudge from Stats module on the dashboard. [#39496]
- Styles: Update styling for external links. [#39337]
- SubscribeBlock: Fix white-space issues. [#39478]
- Subscriptions: Fix Subscribe Modal spacing. [#39199]
- Subscriptions: Hook the Subscribe block only after single post content. [#39188]
- Subscriptions: Make Subscription overlay dismiss cookie a session cookie. [#39097]
- Subscription widget: Fix PHP warnings. [#39458]
- Terms of Service: optimize initialization. [#39286]
- Title Optimization: Handle enter/return key to trigger a generation when they are pressed. [#39399]
- Title Optimization: improve button behaviors when handling errors. [#39554]
- Title Optimization: Properly handle errors and show the correct UI for each. [#39340]
- Updated package dependencies. [#39176] [#39278] [#39288]
- Updated package dependencies. [#39302]
- Updated package dependencies. [#39332]
- Updated to not check for onboarding option from the frontend. [#39246]
- WP.com: Ensure portfolios are enabled and working properly on themes that support portfolios. [#39431]
- Write Brief: Turn spelling mistakes and long sentences on by default when the tool is enabled. [#39495]

## 13.8.1 - 2024-09-10
### Bug fixes
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"automattic/jetpack-status": "^4.0.2",
"automattic/jetpack-sync": "^3.13.2",
"automattic/jetpack-videopress": "^0.24.10",
"automattic/jetpack-waf": "^0.20.0",
"automattic/jetpack-waf": "^0.20.1",
"automattic/jetpack-wordads": "^0.3.34",
"automattic/woocommerce-analytics": "^0.1.11",
"scssphp/scssphp": "1.12.0"
Expand Down Expand Up @@ -94,7 +94,7 @@
"platform": {
"ext-intl": "0.0.0"
},
"autoloader-suffix": "f11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ13_9_beta",
"autoloader-suffix": "f11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ13_9",
"allow-plugins": {
"automattic/jetpack-autoloader": true,
"automattic/jetpack-composer-plugin": true
Expand Down
4 changes: 2 additions & 2 deletions jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://jetpack.com
* Description: Security, performance, and marketing tools made by WordPress experts. Jetpack keeps your site protected so you can focus on more important things.
* Author: Automattic
* Version: 13.9-beta
* Version: 13.9
* Author URI: https://jetpack.com
* License: GPL2+
* Text Domain: jetpack
Expand Down Expand Up @@ -34,7 +34,7 @@

define( 'JETPACK__MINIMUM_WP_VERSION', '6.5' );
define( 'JETPACK__MINIMUM_PHP_VERSION', '7.0' );
define( 'JETPACK__VERSION', '13.9-beta' );
define( 'JETPACK__VERSION', '13.9' );

/**
* Constant used to fetch the connection owner token
Expand Down
5 changes: 5 additions & 0 deletions jetpack_vendor/automattic/jetpack-waf/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.20.1] - 2024-10-01
### Deprecated
- Added back public API as deprecated. [#39606]

## [0.20.0] - 2024-09-30
### Added
- Added Waf_Blocklog_Manager class [#35739]
Expand Down Expand Up @@ -374,6 +378,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Core: do not ship .phpcs.dir.xml in production builds.

[0.20.1]: https://github.com/Automattic/jetpack-waf/compare/v0.20.0...v0.20.1
[0.20.0]: https://github.com/Automattic/jetpack-waf/compare/v0.19.0...v0.20.0
[0.19.0]: https://github.com/Automattic/jetpack-waf/compare/v0.18.5...v0.19.0
[0.18.5]: https://github.com/Automattic/jetpack-waf/compare/v0.18.4...v0.18.5
Expand Down
44 changes: 44 additions & 0 deletions jetpack_vendor/automattic/jetpack-waf/src/class-waf-stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

namespace Automattic\Jetpack\Waf;

use Automattic\Jetpack\IP\Utils as IP_Utils;

/**
* Retrieves WAF stats.
*/
Expand All @@ -25,6 +27,48 @@ public static function get_blocked_requests() {
);
}

/**
* Get IP allow list count
*
* @return int The number of valid IP addresses in the allow list
*
* @deprecated 0.20.1 Use Automattic\Jetpack\Waf\Waf_Blocklog_Manager API instead.
*/
public static function get_ip_allow_list_count() {
_deprecated_function( __METHOD__, 'waf-0.20.1', 'Automattic\Jetpack\Waf\Waf_Blocklog_Manager' );

$ip_allow_list = get_option( Waf_Rules_Manager::IP_ALLOW_LIST_OPTION_NAME );

if ( ! $ip_allow_list ) {
return 0;
}

$results = IP_Utils::get_ip_addresses_from_string( $ip_allow_list );

return count( $results );
}

/**
* Get IP block list count
*
* @return int The number of valid IP addresses in the block list
*
* @deprecated 0.20.1 Use Automattic\Jetpack\Waf\Waf_Blocklog_Manager API instead.
*/
public static function get_ip_block_list_count() {
_deprecated_function( __METHOD__, 'waf-0.20.1', 'Automattic\Jetpack\Waf\Waf_Blocklog_Manager' );

$ip_block_list = get_option( Waf_Rules_Manager::IP_BLOCK_LIST_OPTION_NAME );

if ( ! $ip_block_list ) {
return 0;
}

$results = IP_Utils::get_ip_addresses_from_string( $ip_block_list );

return count( $results );
}

/** The global stats cache
*
* @var array|null
Expand Down
2 changes: 1 addition & 1 deletion jetpack_vendor/i18n-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
),
'jetpack-waf' => array(
'path' => 'jetpack_vendor/automattic/jetpack-waf',
'ver' => '0.20.0',
'ver' => '0.20.1',
),
'jetpack-wordads' => array(
'path' => 'jetpack_vendor/automattic/jetpack-wordads',
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ Jetpack Backup can do a full website migration to a new host, migrate theme file


== Changelog ==
### 13.9-beta - 2024-09-30
### 13.9 - 2024-10-01
#### Major Enhancements
- Jetpack plugin: Remove the 'WordPress.com Toolbar' module.

Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitf11009ded9fc4592b6a05b61ce272b3c_jetpack13_9_beta::getLoader();
return ComposerAutoloaderInitf11009ded9fc4592b6a05b61ce272b3c_jetpack13_9::getLoader();
2 changes: 1 addition & 1 deletion vendor/autoload_packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @package automattic/jetpack-autoloader
*/

namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ13_9_beta\al3_1_0;
namespace Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ13_9\al3_1_0;

// phpcs:ignore

Expand Down
Loading

0 comments on commit a7e081c

Please sign in to comment.