Skip to content

Commit 0723b42

Browse files
pablinosmatticbot
authored andcommitted
Social | Hide irrelevant UI on social admin page (#41393)
* Hide Social Notes if Social plugin is not active * Hide connection screen and pricing page for WPCOM * Hide upgrade nudge for WPCOM * Add safe fallbacks for settings selectors for WPCOM * Hide shares data on WPCOM * Hide plugin footer on WPCOM * Hide license notice for WPCOM * Hide publicize toggle on WPCOM * Hide UTM toggle for now on WPCOM * Revert "Hide UTM toggle for now on WPCOM" This reverts commit c88feecbe69c6310b4a1ebc8caa514c86c7cec8f. Settings API is fixed in #41420 * Fix unit tests * Adjust the WPCOM test and display of the toggle section. * Adjust styling and fix selector name. * Add dummy arg to avoid optimisation problems. * Create our helper function * Hide everything that's not self hosted * Move util to script data package * changelog * Clean up function * Use function in admin page * Update support doc link and general publicize help link * Fix selector to check that the module is active. * Swap to using _x rather than a dummy arg to fix the optimisation --------- Co-authored-by: Paul Bunkham <[email protected]> Co-authored-by: Gergely Juhasz <[email protected]> Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/13244593460 Upstream-Ref: Automattic/jetpack@407829a
1 parent f738344 commit 0723b42

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array(), 'version' => '3d6b6c0a2cee025f46f3');
1+
<?php return array('dependencies' => array(), 'version' => 'fa56169a364243ed8d42');

jetpack_vendor/automattic/jetpack-assets/build/jetpack-script-data.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jetpack_vendor/automattic/jetpack-assets/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"validate": "pnpm exec validate-es build/"
1313
},
1414
"dependencies": {
15-
"@automattic/jetpack-script-data": "^0.1.9",
15+
"@automattic/jetpack-script-data": "^0.2.0-alpha",
1616
"react": "18.3.1"
1717
},
1818
"devDependencies": {

vendor/composer/installed.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dist": {
88
"type": "path",
99
"url": "/tmp/jetpack-build/Automattic/jetpack-assets",
10-
"reference": "4203ef9c37c309c6d465f6a59656c901149c69ce"
10+
"reference": "92f140e84f3c999e0ed66327ebdce34227c3a820"
1111
},
1212
"require": {
1313
"automattic/jetpack-constants": "^3.0.1",
@@ -79,7 +79,7 @@
7979
"dist": {
8080
"type": "path",
8181
"url": "/tmp/jetpack-build/Automattic/jetpack-autoloader",
82-
"reference": "facdbd6d427dace69c090189cf11fc32839fc9fa"
82+
"reference": "dd03fc3fcba717cd94f842afb605729eb1e0935d"
8383
},
8484
"require": {
8585
"composer-plugin-api": "^2.2",
@@ -150,7 +150,7 @@
150150
"dist": {
151151
"type": "path",
152152
"url": "/tmp/jetpack-build/Automattic/jetpack-composer-plugin",
153-
"reference": "fb1097ba32760ed623dd53eef44e74ccc089a09e"
153+
"reference": "42f6ddc79100f939fcadfbe86c786a4f94566049"
154154
},
155155
"require": {
156156
"composer-plugin-api": "^2.2",
@@ -213,7 +213,7 @@
213213
"dist": {
214214
"type": "path",
215215
"url": "/tmp/jetpack-build/Automattic/jetpack-constants",
216-
"reference": "06871e3ed8108fd42122fd762167be0c24adf501"
216+
"reference": "80fc3c5c111b22813bed9ceb0ca9ceac22621a50"
217217
},
218218
"require": {
219219
"php": ">=7.2"

vendor/composer/installed.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'automattic/jetpack-assets' => array(
1414
'pretty_version' => '4.0.5',
1515
'version' => '4.0.5.0',
16-
'reference' => '4203ef9c37c309c6d465f6a59656c901149c69ce',
16+
'reference' => '92f140e84f3c999e0ed66327ebdce34227c3a820',
1717
'type' => 'jetpack-library',
1818
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-assets',
1919
'aliases' => array(),
@@ -22,7 +22,7 @@
2222
'automattic/jetpack-autoloader' => array(
2323
'pretty_version' => '5.0.1',
2424
'version' => '5.0.1.0',
25-
'reference' => 'facdbd6d427dace69c090189cf11fc32839fc9fa',
25+
'reference' => 'dd03fc3fcba717cd94f842afb605729eb1e0935d',
2626
'type' => 'composer-plugin',
2727
'install_path' => __DIR__ . '/../automattic/jetpack-autoloader',
2828
'aliases' => array(),
@@ -31,7 +31,7 @@
3131
'automattic/jetpack-composer-plugin' => array(
3232
'pretty_version' => '4.0.0',
3333
'version' => '4.0.0.0',
34-
'reference' => 'fb1097ba32760ed623dd53eef44e74ccc089a09e',
34+
'reference' => '42f6ddc79100f939fcadfbe86c786a4f94566049',
3535
'type' => 'composer-plugin',
3636
'install_path' => __DIR__ . '/../automattic/jetpack-composer-plugin',
3737
'aliases' => array(),
@@ -40,7 +40,7 @@
4040
'automattic/jetpack-constants' => array(
4141
'pretty_version' => '3.0.1',
4242
'version' => '3.0.1.0',
43-
'reference' => '06871e3ed8108fd42122fd762167be0c24adf501',
43+
'reference' => '80fc3c5c111b22813bed9ceb0ca9ceac22621a50',
4444
'type' => 'jetpack-library',
4545
'install_path' => __DIR__ . '/../../jetpack_vendor/automattic/jetpack-constants',
4646
'aliases' => array(),

0 commit comments

Comments
 (0)