File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ This is an alpha version! The changes listed here are not final.
1919### Fixed
2020- Fixed initial state error in the editor for simple sites
2121- Publicize: fix page-detection util methods to stop unnecessary API calls to wp.com
22+ - Social | Publicize - Fixed call to undefined method on WPCOM
2223
2324## [ 0.56.0] - 2024-11-18
2425### Added
Original file line number Diff line number Diff line change @@ -151,7 +151,8 @@ public static function get_store_initial_state() {
151151
152152 $ share_status = array ();
153153
154- if ( Utils::should_block_editor_have_social () && $ post ) {
154+ // get_post_share_status is not available on WPCOM yet.
155+ if ( Utils::should_block_editor_have_social () && $ post && is_callable ( array ( self ::publicize (), 'get_post_share_status ' ) ) ) {
155156 $ share_status [ $ post ->ID ] = self ::publicize ()->get_post_share_status ( $ post ->ID );
156157 }
157158
You can’t perform that action at this time.
0 commit comments