Skip to content

Commit

Permalink
Social | Publicize - Fix call to undefined method on WPCOM (#40328)
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk authored and matticbot committed Nov 25, 2024
1 parent e4f89c6 commit 1ee5864
Show file tree
Hide file tree
Showing 7 changed files with 121 additions and 119 deletions.
1 change: 1 addition & 0 deletions jetpack_vendor/automattic/jetpack-publicize/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This is an alpha version! The changes listed here are not final.
### Fixed
- Fixed initial state error in the editor for simple sites
- Publicize: fix page-detection util methods to stop unnecessary API calls to wp.com
- Social | Publicize - Fixed call to undefined method on WPCOM

## [0.56.0] - 2024-11-18
### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ public static function get_store_initial_state() {

$share_status = array();

if ( Utils::should_block_editor_have_social() && $post ) {
// 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' ) ) ) {
$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-alpha1732526837',
'ver' => '0.56.1-alpha1732542455',
),
'jetpack-search-pkg' => array(
'path' => 'jetpack_vendor/automattic/jetpack-search',
Expand Down
Loading

0 comments on commit 1ee5864

Please sign in to comment.