Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/trunk' into feat/unify-masterbar-2
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Jul 18, 2024
2 parents 2cfa7fa + 3a1eb8b commit 94a224f
Show file tree
Hide file tree
Showing 49 changed files with 139 additions and 84 deletions.
5 changes: 5 additions & 0 deletions projects/js-packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

### This is a list detailing changes for the Jetpack RNA Components package releases.

## [0.54.4] - 2024-07-18
### Changed
- Internal updates.

## [0.54.3] - 2024-07-03
### Changed
- Updated package dependencies. [#38132]
Expand Down Expand Up @@ -1083,6 +1087,7 @@
### Changed
- Update node version requirement to 14.16.1

[0.54.4]: https://github.com/Automattic/jetpack-components/compare/0.54.3...0.54.4
[0.54.3]: https://github.com/Automattic/jetpack-components/compare/0.54.2...0.54.3
[0.54.2]: https://github.com/Automattic/jetpack-components/compare/0.54.1...0.54.2
[0.54.1]: https://github.com/Automattic/jetpack-components/compare/0.54.0...0.54.1
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion projects/js-packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-components",
"version": "0.54.4-alpha",
"version": "0.54.4",
"description": "Jetpack Components Package",
"author": "Automattic",
"license": "GPL-2.0-or-later",
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/connection/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

### This is a list detailing changes for the Jetpack RNA Connection Component releases.

## [0.34.0] - 2024-07-18
### Changed
- Connection Screen: remove mention of Stats from the list of available free features. [#38328]

## [0.33.19] - 2024-07-03
### Changed
- Updated package dependencies. [#38132]
Expand Down Expand Up @@ -797,6 +801,7 @@
- `Main` and `ConnectUser` components added.
- `JetpackRestApiClient` API client added.

[0.34.0]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.19...v0.34.0
[0.33.19]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.18...v0.33.19
[0.33.18]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.17...v0.33.18
[0.33.17]: https://github.com/Automattic/jetpack-connection-js/compare/v0.33.16...v0.33.17
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion projects/js-packages/connection/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-connection",
"version": "0.34.0-alpha",
"version": "0.34.0",
"description": "Jetpack Connection Component",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/connection/#readme",
"bugs": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Significance: patch
Type: changed
Comment: Updated composer.lock.


Update dependencies.
2 changes: 1 addition & 1 deletion projects/js-packages/partner-coupon/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-partner-coupon",
"version": "0.2.82",
"version": "0.2.83-alpha",
"description": "This package aims to add components to make it easier to redeem partner coupons",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/partner-coupon/#readme",
"bugs": {
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/shared-extension-utils/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.14.18] - 2024-07-18
### Changed
- Update dependencies. [#37356]

## [0.14.17] - 2024-07-03
### Changed
- Updated package dependencies. [#38132]
Expand Down Expand Up @@ -400,6 +404,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Core: prepare utility for release

[0.14.18]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.14.17...0.14.18
[0.14.17]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.14.16...0.14.17
[0.14.16]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.14.15...0.14.16
[0.14.15]: https://github.com/Automattic/jetpack-shared-extension-utils/compare/0.14.14...0.14.15
Expand Down
2 changes: 1 addition & 1 deletion projects/js-packages/shared-extension-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/jetpack-shared-extension-utils",
"version": "0.14.17",
"version": "0.14.18",
"description": "Utility functions used by the block editor extensions",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/shared-extension-utils/#readme",
"bugs": {
Expand Down
4 changes: 4 additions & 0 deletions projects/packages/backup/changelog/force-a-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update dependencies.
2 changes: 1 addition & 1 deletion projects/packages/backup/src/class-package-version.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
class Package_Version {

const PACKAGE_VERSION = '3.4.1';
const PACKAGE_VERSION = '3.4.2-alpha';

const PACKAGE_SLUG = 'backup';

Expand Down
4 changes: 4 additions & 0 deletions projects/packages/forms/changelog/fix-contact-form-ip-field
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Form submissions table: ensure the IP address is displayed for each submission, when available.
2 changes: 1 addition & 1 deletion projects/packages/forms/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@automattic/jetpack-forms",
"version": "0.32.4",
"version": "0.32.5-alpha",
"description": "Jetpack Forms",
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/forms/#readme",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion projects/packages/forms/src/class-jetpack-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
class Jetpack_Forms {

const PACKAGE_VERSION = '0.32.4';
const PACKAGE_VERSION = '0.32.5-alpha';

/**
* Load the contact form module.
Expand Down
14 changes: 13 additions & 1 deletion projects/packages/forms/src/contact-form/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,18 @@ public function grunion_manage_post_column_response( $post ) {
}
}

// Extract IP address if we still do not have it at this point.
if (
! isset( $content_fields['_feedback_ip'] )
&& is_array( $chunks )
&& ! empty( $chunks[0] )
) {
preg_match( '/^IP: (.+)$/m', $chunks[0], $matches );
if ( ! empty( $matches[1] ) ) {
$content_fields['_feedback_ip'] = $matches[1];
}
}

$response_fields = array_diff_key( $response_fields, array_flip( $non_printable_keys ) );

echo '<hr class="feedback_response__mobile-separator" />';
Expand All @@ -757,7 +769,7 @@ public function grunion_manage_post_column_response( $post ) {
echo '<hr />';

echo '<div class="feedback_response__item">';
if ( isset( $content_fields['_feedback_ip'] ) ) {
if ( ! empty( $content_fields['_feedback_ip'] ) ) {
echo '<div class="feedback_response__item-key">' . esc_html__( 'IP', 'jetpack-forms' ) . '</div>';
echo '<div class="feedback_response__item-value">' . esc_html( $content_fields['_feedback_ip'] ) . '</div>';
}
Expand Down
12 changes: 12 additions & 0 deletions projects/packages/jetpack-mu-wpcom/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ 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).

## [5.45.0] - 2024-07-18
### Added
- MU WPCOM: Support localizeUrl [#38318]

### Changed
- Block Perplexity AI bot in robots.txt when opted out of data sharing. [#38400]
- Hide wpcom features when site is agency-managed or user is local [#38364]

### Fixed
- Admin Bar: Hotfix the order of the admin menu items for WP 6.6 [#38347]

## [5.44.0] - 2024-07-15
### Added
- Add Profile -> My Account menu to admin bar. [#38294]
Expand Down Expand Up @@ -997,6 +1008,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Testing initial package release.

[5.45.0]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v5.44.0...v5.45.0
[5.44.0]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v5.43.0...v5.44.0
[5.43.0]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v5.42.1...v5.43.0
[5.42.1]: https://github.com/Automattic/jetpack-mu-wpcom/compare/v5.42.0...v5.42.1
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

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.45.0-alpha",
"version": "5.45.0",

Check failure on line 4 in projects/packages/jetpack-mu-wpcom/package.json

View workflow job for this annotation

GitHub Actions / Changelogger validity

Version mismatch, expected 5.46.0-alpha but found 5.45.0! You might use `tools/project-version.sh -f -u 5.46.0-alpha packages/jetpack-mu-wpcom` or `tools/fixup-project-versions.sh` to fix this.
"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.45.0-alpha';
const PACKAGE_VERSION = '5.45.0';

Check failure on line 16 in projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php

View workflow job for this annotation

GitHub Actions / Changelogger validity

Version mismatch, expected 5.46.0-alpha but found 5.45.0! You might use `tools/project-version.sh -f -u 5.46.0-alpha packages/jetpack-mu-wpcom` or `tools/fixup-project-versions.sh` to fix this.
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 @@ -45,6 +45,7 @@ function robots_txt( string $output, $public ): string {
'GPTBot',
'omgili',
'omgilibot',
'PerplexityBot',
'SentiBot',
'sentibot',
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ public function provide_robots_txt(): \Iterator {
User-agent: omgilibot
Disallow: /
User-agent: PerplexityBot
Disallow: /
User-agent: SentiBot
Disallow: /
Expand Down
5 changes: 5 additions & 0 deletions projects/packages/jitm/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).

## [3.1.14] - 2024-07-18
### Changed
- Update margins on jitms in my jetpack [#38283]

## [3.1.13] - 2024-07-03
### Changed
- Updated package dependencies. [#38132]
Expand Down Expand Up @@ -731,6 +735,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Update Jetpack to use new JITM package

[3.1.14]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.13...v3.1.14
[3.1.13]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.12...v3.1.13
[3.1.12]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.11...v3.1.12
[3.1.11]: https://github.com/Automattic/jetpack-jitm/compare/v3.1.10...v3.1.11
Expand Down
4 changes: 0 additions & 4 deletions projects/packages/jitm/changelog/update-my-jetpack-jitm-css

This file was deleted.

2 changes: 1 addition & 1 deletion projects/packages/jitm/src/class-jitm.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
class JITM {

const PACKAGE_VERSION = '3.1.14-alpha';
const PACKAGE_VERSION = '3.1.14';

/**
* The configuration method that is called from the jetpack-config package.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Masterbar: Fix undefined array key warning in Base_Admin_Menu::hide_parent_of_hidden_submenus
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,8 @@ public function hide_parent_of_hidden_submenus() {
$this->sort_hidden_submenus();

foreach ( $menu as $menu_index => $menu_item ) {
$has_submenus = isset( $submenu[ $menu_item[2] ] );

// Skip if the menu doesn't have submenus.
if ( ! $has_submenus || ! is_array( $submenu[ $menu_item[2] ] ) ) {
if ( empty( $submenu[ $menu_item[2] ] ) || ! is_array( $submenu[ $menu_item[2] ] ) ) {
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,15 @@ public function hide_menu_based_on_submenu_provider() {
),
array( '', 'read', 'test-slug', '', Base_Admin_Menu::HIDE_CSS_CLASS ),
),
array(
array(
array( '', 'read', 'test-empty-submenu', '', '' ),
),
array(
'test-empty-submenu' => array(),
),
array( '', 'read', 'test-empty-submenu', '', '' ),
),
);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fixed
Comment: This commit fixes the property of a Tracks event that was being sent as a JSON, which is not a valid Tracks value.


4 changes: 4 additions & 0 deletions projects/packages/search/changelog/force-a-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update dependencies.
2 changes: 1 addition & 1 deletion projects/packages/search/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jetpack-search",
"version": "0.44.12",
"version": "0.44.13-alpha",
"description": "Package for Jetpack Search products",
"main": "main.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion projects/packages/search/src/class-package.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Search package general information
*/
class Package {
const VERSION = '0.44.12';
const VERSION = '0.44.13-alpha';
const SLUG = 'search';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Button } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import useEntityRecordState from 'hooks/use-entity-record-state';
import { SERVER_OBJECT_NAME } from 'instant-search/lib/constants';
import { eventPrefix, recordEvent } from 'lib/analytics';
import './styles.scss';

Expand All @@ -11,22 +10,13 @@ import './styles.scss';
* @returns {Element} component instance
*/
export default function SaveButton() {
const {
editedEntities: editedSettings,
isSaving,
hasUnsavedEdits,
saveRecords,
} = useEntityRecordState();
const { isSaving, hasUnsavedEdits, saveRecords } = useEntityRecordState();

const onClick = ( ...args ) => {
if ( isSaving ) {
return;
}
recordEvent( `${ eventPrefix }_save_button_click`, {
initialSettings: JSON.stringify( window[ SERVER_OBJECT_NAME ].overlayOptions ),
changedSettings: JSON.stringify( editedSettings ),
changedSettingNames: Object.keys( editedSettings ).join( ',' ),
} );
recordEvent( `${ eventPrefix }_save_button_click` );
saveRecords( ...args );
};

Expand Down
4 changes: 4 additions & 0 deletions projects/packages/videopress/changelog/force-a-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update dependencies.
Loading

0 comments on commit 94a224f

Please sign in to comment.