Skip to content

Commit 4b1c87e

Browse files
manzoorwanijkmatticbot
authored andcommitted
Social | Use feature flag for share status data (#41218)
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/12985276035 Upstream-Ref: Automattic/jetpack@8eb88d0
1 parent 7baf9a9 commit 4b1c87e

File tree

7 files changed

+89
-90
lines changed

7 files changed

+89
-90
lines changed

jetpack_vendor/automattic/jetpack-publicize/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This is an alpha version! The changes listed here are not final.
1212
### Changed
1313
- Refactored Social Note settings to use core
1414
- Social | Unify connections management API schema
15+
- Social | Use feature flag for share status data
1516

1617
### Fixed
1718
- Social: Fix profile links for LinkedIn connections

jetpack_vendor/automattic/jetpack-publicize/src/class-publicize-script-data.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,12 @@ public static function get_social_settings() {
171171
*/
172172
public static function get_store_initial_state() {
173173

174-
$is_wpcom = ( new Host() )->is_wpcom_platform();
175-
176174
$post = get_post();
177175

178176
$share_status = array();
179177

180178
// get_post_share_status is not available on WPCOM yet.
181-
if ( Utils::should_block_editor_have_social() && $post && ! $is_wpcom ) {
179+
if ( Utils::should_block_editor_have_social() && $post && self::has_feature_flag( 'share-status' ) ) {
182180
$share_status[ $post->ID ] = self::publicize()->get_post_share_status( $post->ID );
183181
}
184182

jetpack_vendor/i18n-map.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
),
7171
'jetpack-publicize-pkg' => array(
7272
'path' => 'jetpack_vendor/automattic/jetpack-publicize',
73-
'ver' => '0.58.0-alpha1737611713',
73+
'ver' => '0.58.0-alpha1737968072',
7474
),
7575
'jetpack-sync' => array(
7676
'path' => 'jetpack_vendor/automattic/jetpack-sync',

vendor/composer/installed.json

+30-30
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dist": {
88
"type": "path",
99
"url": "/tmp/jetpack-build/Automattic/jetpack-a8c-mc-stats",
10-
"reference": "25182f4442d77e7365b6b1e97ae718ec639d3566"
10+
"reference": "3bffbae13193ca7162b53d9ec5a61281037b651d"
1111
},
1212
"require": {
1313
"php": ">=7.2"
@@ -63,7 +63,7 @@
6363
"dist": {
6464
"type": "path",
6565
"url": "/tmp/jetpack-build/Automattic/jetpack-admin-ui",
66-
"reference": "42b9971112cc1ef42b4c21054691da0a0fdab8f0"
66+
"reference": "92aa1fbd8e0a446cc16de1d221a44a633fc315e3"
6767
},
6868
"require": {
6969
"php": ">=7.2"
@@ -131,7 +131,7 @@
131131
"dist": {
132132
"type": "path",
133133
"url": "/tmp/jetpack-build/Automattic/jetpack-assets",
134-
"reference": "16bfa9534cd32d43e5aa9a987e90c9e51b89f65f"
134+
"reference": "e205696a84d9cb0b2f08e8b656354a7bb9ccc6e3"
135135
},
136136
"require": {
137137
"automattic/jetpack-constants": "^3.0.1",
@@ -203,7 +203,7 @@
203203
"dist": {
204204
"type": "path",
205205
"url": "/tmp/jetpack-build/Automattic/jetpack-autoloader",
206-
"reference": "5db4d84b5745993075ae3a891b12ce31d0374ce1"
206+
"reference": "7a351abc99639419d044e2162f5e426750df711b"
207207
},
208208
"require": {
209209
"composer-plugin-api": "^2.2",
@@ -274,7 +274,7 @@
274274
"dist": {
275275
"type": "path",
276276
"url": "/tmp/jetpack-build/Automattic/jetpack-boost-core",
277-
"reference": "e30c54d2f0ea4415bbb2b3c445a4a90b2929f8d0"
277+
"reference": "fcc9305bc0b7be24e34e2b43447a62f53e2a1c71"
278278
},
279279
"require": {
280280
"automattic/jetpack-connection": "^6.3.1-alpha",
@@ -332,7 +332,7 @@
332332
"dist": {
333333
"type": "path",
334334
"url": "/tmp/jetpack-build/Automattic/jetpack-boost-speed-score",
335-
"reference": "1817c69de9a50eda8c14de59d8cd14e167aadf0e"
335+
"reference": "f08eeada2cb19bbb7e080510e38633c11b52773c"
336336
},
337337
"require": {
338338
"automattic/jetpack-boost-core": "^0.3.4",
@@ -399,7 +399,7 @@
399399
"dist": {
400400
"type": "path",
401401
"url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin",
402-
"reference": "27654c9d41bfe0dec1a2f83de269c196c74c7003"
402+
"reference": "87ae907adc9ebff496a630874541adc501193a07"
403403
},
404404
"require": {
405405
"composer-plugin-api": "^2.2",
@@ -462,7 +462,7 @@
462462
"dist": {
463463
"type": "path",
464464
"url": "/tmp/jetpack-build/Automattic/jetpack-config",
465-
"reference": "e0cc456901d005a8db4a450dfde2dffa399eac68"
465+
"reference": "ee586b0f610039fb16da874988977cb80d2dd90b"
466466
},
467467
"require": {
468468
"php": ">=7.2"
@@ -537,7 +537,7 @@
537537
"dist": {
538538
"type": "path",
539539
"url": "/tmp/jetpack-build/Automattic/jetpack-connection",
540-
"reference": "1dd7d5acf6daff540399cf61732765b46df7d741"
540+
"reference": "4a59f75de5c3683c0e365aa05a6703e579cfcb9e"
541541
},
542542
"require": {
543543
"automattic/jetpack-a8c-mc-stats": "^3.0.0",
@@ -630,7 +630,7 @@
630630
"dist": {
631631
"type": "path",
632632
"url": "/tmp/jetpack-build/Automattic/jetpack-constants",
633-
"reference": "ffa0212654b0a49014f3386a7f5bb9fd683db6aa"
633+
"reference": "8171a83d9b1d912000e2d40e497c696f4cdc5995"
634634
},
635635
"require": {
636636
"php": ">=7.2"
@@ -687,7 +687,7 @@
687687
"dist": {
688688
"type": "path",
689689
"url": "/tmp/jetpack-build/Automattic/jetpack-device-detection",
690-
"reference": "8e4cd4809e6e6e06225efe925f1a4f5b2cfe3046"
690+
"reference": "d3f9a763398bf05df24ffb25e372da15f9eaabb9"
691691
},
692692
"require": {
693693
"php": ">=7.2"
@@ -743,7 +743,7 @@
743743
"dist": {
744744
"type": "path",
745745
"url": "/tmp/jetpack-build/Automattic/jetpack-explat",
746-
"reference": "2ac7b8e0c31a01aa6d87aee16846931520743ba5"
746+
"reference": "8e2afbd2ae15d7b30e40ca548de70f6fa348ee1c"
747747
},
748748
"require": {
749749
"automattic/jetpack-connection": "^6.3.1-alpha",
@@ -821,7 +821,7 @@
821821
"dist": {
822822
"type": "path",
823823
"url": "/tmp/jetpack-build/Automattic/jetpack-ip",
824-
"reference": "b835f936344d593ed58fb9f6cd93dbc7c68b47c1"
824+
"reference": "817c8502b395ae4765731aa6444b41bce1be11c5"
825825
},
826826
"require": {
827827
"php": ">=7.2"
@@ -882,7 +882,7 @@
882882
"dist": {
883883
"type": "path",
884884
"url": "/tmp/jetpack-build/Automattic/jetpack-jitm",
885-
"reference": "df354fb935b2dec92f6030d220b7c47be5a94e89"
885+
"reference": "7718df26ddf6e8df5d974ade2c14ffa843553e29"
886886
},
887887
"require": {
888888
"automattic/jetpack-a8c-mc-stats": "^3.0.0",
@@ -960,7 +960,7 @@
960960
"dist": {
961961
"type": "path",
962962
"url": "/tmp/jetpack-build/Automattic/jetpack-licensing",
963-
"reference": "2238c6498d3d9d93b72f52cf95e99059ed5df7b0"
963+
"reference": "498bf52ab6aa906c2eed1325cc74297c1ded1702"
964964
},
965965
"require": {
966966
"automattic/jetpack-connection": "^6.3.1-alpha",
@@ -1025,7 +1025,7 @@
10251025
"dist": {
10261026
"type": "path",
10271027
"url": "/tmp/jetpack-build/Automattic/jetpack-logo",
1028-
"reference": "cad1b684fd1f9ad7082b2cac32f4bdfdaab5beb5"
1028+
"reference": "991e746969bb9861e602677270d0eddbcd309c88"
10291029
},
10301030
"require": {
10311031
"php": ">=7.2"
@@ -1081,7 +1081,7 @@
10811081
"dist": {
10821082
"type": "path",
10831083
"url": "/tmp/jetpack-build/Automattic/jetpack-my-jetpack",
1084-
"reference": "fa4c78f762bb93cefff7262e630abe15e54b8e32"
1084+
"reference": "c91cae479b0aba7587c67eec75643b17df5836bc"
10851085
},
10861086
"require": {
10871087
"automattic/jetpack-admin-ui": "^0.5.1",
@@ -1186,7 +1186,7 @@
11861186
"dist": {
11871187
"type": "path",
11881188
"url": "/tmp/jetpack-build/Automattic/jetpack-password-checker",
1189-
"reference": "e683e6db8e53e4ba51557027d035eab0429e50d2"
1189+
"reference": "919bffdac5ca23b9ae1ae80c822d696003ad87e6"
11901190
},
11911191
"require": {
11921192
"php": ">=7.2"
@@ -1250,7 +1250,7 @@
12501250
"dist": {
12511251
"type": "path",
12521252
"url": "/tmp/jetpack-build/Automattic/jetpack-plans",
1253-
"reference": "d905d69f58dc5c5f76b06bb6914c47a3f08f95d2"
1253+
"reference": "516df721976cfaa1b48d24d6d356ec63675269e9"
12541254
},
12551255
"require": {
12561256
"automattic/jetpack-connection": "^6.3.1-alpha",
@@ -1321,7 +1321,7 @@
13211321
"dist": {
13221322
"type": "path",
13231323
"url": "/tmp/jetpack-build/Automattic/jetpack-plugins-installer",
1324-
"reference": "0b7487bb6271c99a9a23e63ec70bd34096ba67a4"
1324+
"reference": "d46e6855839bb826cd6a7d22aeff9429539bb1ed"
13251325
},
13261326
"require": {
13271327
"automattic/jetpack-a8c-mc-stats": "^3.0.0",
@@ -1380,7 +1380,7 @@
13801380
"dist": {
13811381
"type": "path",
13821382
"url": "/tmp/jetpack-build/Automattic/jetpack-post-list",
1383-
"reference": "2bf76ccb42464c64b1f69e0cbe5e83afe5b002dd"
1383+
"reference": "13f6c099f11cde9a5c6d7449a2eef0fc42c3149f"
13841384
},
13851385
"require": {
13861386
"automattic/jetpack-assets": "^4.0.3",
@@ -1448,7 +1448,7 @@
14481448
"dist": {
14491449
"type": "path",
14501450
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-models",
1451-
"reference": "5f65a8a8f8453e5a226a6e67821f6ecb4b2433f0"
1451+
"reference": "5332a5614217f2c22a2a2653e7417ac4bc3e6eb4"
14521452
},
14531453
"require": {
14541454
"php": ">=7.2"
@@ -1521,7 +1521,7 @@
15211521
"dist": {
15221522
"type": "path",
15231523
"url": "/tmp/jetpack-build/Automattic/jetpack-protect-status",
1524-
"reference": "78ffef2cb97f6470272643a84f223c113ff57078"
1524+
"reference": "76fbce1e37b12e066a7f261bcdf2e46a5b0558f4"
15251525
},
15261526
"require": {
15271527
"automattic/jetpack-connection": "^6.3.1-alpha",
@@ -1594,12 +1594,12 @@
15941594
},
15951595
{
15961596
"name": "automattic/jetpack-publicize",
1597-
"version": "0.58.0-alpha.1737611713",
1598-
"version_normalized": "0.58.0.0-alpha1737611713",
1597+
"version": "0.58.0-alpha.1737968072",
1598+
"version_normalized": "0.58.0.0-alpha1737968072",
15991599
"dist": {
16001600
"type": "path",
16011601
"url": "/tmp/jetpack-build/Automattic/jetpack-publicize",
1602-
"reference": "132705f8ccd2d750504923c19f84506a5c265b1b"
1602+
"reference": "0ce5a0baabd074b1a47ec205e8b533dfff0cd191"
16031603
},
16041604
"require": {
16051605
"automattic/jetpack-assets": "^4.0.3",
@@ -1684,7 +1684,7 @@
16841684
"dist": {
16851685
"type": "path",
16861686
"url": "/tmp/jetpack-build/Automattic/jetpack-redirect",
1687-
"reference": "0f2c9284f72088c4c522fa2f9d72483c18db8458"
1687+
"reference": "0b4bd6b7e4cd285719d28513442ea2486932f636"
16881688
},
16891689
"require": {
16901690
"automattic/jetpack-status": "^5.0.2",
@@ -1742,7 +1742,7 @@
17421742
"dist": {
17431743
"type": "path",
17441744
"url": "/tmp/jetpack-build/Automattic/jetpack-roles",
1745-
"reference": "0534ea4b6dca6c6dd6771f06252e0331fcdc6387"
1745+
"reference": "edaecd4b332d63d533e2228305fb88ef09aee005"
17461746
},
17471747
"require": {
17481748
"php": ">=7.2"
@@ -1799,7 +1799,7 @@
17991799
"dist": {
18001800
"type": "path",
18011801
"url": "/tmp/jetpack-build/Automattic/jetpack-status",
1802-
"reference": "a7407080ee5162e34cbe5bea928307e9560db022"
1802+
"reference": "b8c42d728c6bd9bea1fddc3373b5cc1d088e47d8"
18031803
},
18041804
"require": {
18051805
"automattic/jetpack-constants": "^3.0.1",
@@ -1866,7 +1866,7 @@
18661866
"dist": {
18671867
"type": "path",
18681868
"url": "/tmp/jetpack-build/Automattic/jetpack-sync",
1869-
"reference": "6a8b01c7e6e2256ebd4f4d5863a29edbb931034b"
1869+
"reference": "72a8806a46da05270990d75af77ac96dbaec2b96"
18701870
},
18711871
"require": {
18721872
"automattic/jetpack-connection": "^6.3.1-alpha",

0 commit comments

Comments
 (0)