Skip to content

Commit

Permalink
Social | Fix undefined index error on atomic sites (#40337)
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk authored and matticbot committed Nov 26, 2024
1 parent 0380ca8 commit 878a231
Show file tree
Hide file tree
Showing 8 changed files with 128 additions and 120 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"automattic/jetpack-my-jetpack": "^5.0.2",
"automattic/jetpack-plugins-installer": "^0.5.0",
"automattic/jetpack-post-list": "^0.7.1",
"automattic/jetpack-publicize": "^0.56.1",
"automattic/jetpack-publicize": "^0.56.2-alpha",
"automattic/jetpack-redirect": "^3.0.1",
"automattic/jetpack-roles": "^3.0.1",
"automattic/jetpack-search": "^0.47.1",
Expand Down
8 changes: 8 additions & 0 deletions jetpack_vendor/automattic/jetpack-publicize/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ 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.56.2-alpha] - unreleased

This is an alpha version! The changes listed here are not final.

### Fixed
- Social | Fixed undefined index error on atomic sites

## [0.56.1] - 2024-11-25
### Added
- Social | Added initial post share status to the initial state [#40301]
Expand Down Expand Up @@ -772,6 +779,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated package dependencies.
- Update package.json metadata.

[0.56.2-alpha]: https://github.com/Automattic/jetpack-publicize/compare/v0.56.1...v0.56.2-alpha
[0.56.1]: https://github.com/Automattic/jetpack-publicize/compare/v0.56.0...v0.56.1
[0.56.0]: https://github.com/Automattic/jetpack-publicize/compare/v0.55.2...v0.56.0
[0.55.2]: https://github.com/Automattic/jetpack-publicize/compare/v0.55.1...v0.55.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static function get_store_initial_state() {
$share_status = array();

// get_post_share_status is not available on WPCOM yet.
if ( Utils::should_block_editor_have_social() && $post && is_callable( array( self::publicize(), 'get_post_share_status' ) ) ) {
if ( Utils::should_block_editor_have_social() && $post && ! $is_wpcom ) {
$share_status[ $post->ID ] = self::publicize()->get_post_share_status( $post->ID );
}

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 @@ -102,7 +102,7 @@
),
'jetpack-publicize-pkg' => array(
'path' => 'jetpack_vendor/automattic/jetpack-publicize',
'ver' => '0.56.1',
'ver' => '0.56.2-alpha1732602738',
),
'jetpack-search-pkg' => array(
'path' => 'jetpack_vendor/automattic/jetpack-search',
Expand Down
Loading

0 comments on commit 878a231

Please sign in to comment.