You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sharing block: ensure compatibility with global settings set in module #34117
Ensure compatibility with sharing settings that may have been created via the old module.
Compatibility may mean separating the settings entirely so the new block is only managed via the block / site editor, but that needs to be made clear in settings UI.
This issue may be broken down into multiple issues if necessary.
While working on #34115 (hook new block buttons to Sharing_Service) we basically has copied the logic needed inside the block, having it entirely separated from the Sharing Service.
We would still need to see, what would be the less confusing way to go, either entirely replace current logic (including central buttons controls in calypso), or make these work together.
I suggest we hold off this task until we get some feedback from Call For Testing.
#35542 brings us in this direction, but doesn't have any UI yet. We'll need to work on one, that will set the jetpack_sharing_buttons_auto_add option when toggled. It is necessary, since we do not want to add the block to all sites as soon as they activate the plugin.
I think the easiest way would be if we could add UI to wp.com side on https://wordpress.com/marketing/sharing-buttons/:site. We probably could add a notice there (for sites with block based themes), that has a link to Sharing Buttons docs and a button, that will switch to new behavior. Underhood, it would toggle jetpack_sharing_buttons_auto_add for the site and disable old Sharedaddy feature.
Following up #35542 we could read these settings (could we?) and fill with buttons and styles from old module. Also, on https://:site/wp-admin/admin.php?page=jetpack#/sharing, we might add another toggle, that will do the same for sites, where the old module enabled. If for some reason we can't do these manipulation from wp.com side, we could probably redirect users to page=jetpack#/sharing and utilize that switch.
Modify https://:site/wp-admin/admin.php?page=jetpack#/sharing, adding a button/toggle that will automatically set jetpack_sharing_buttons_auto_add to true and old module feature to false.
Modify https://wordpress.com/marketing/sharing-buttons/:site to either have a button that does everything automatically or navigates to https://:site/wp-admin/admin.php?page=jetpack#/sharing
If we do, we would definitely need to add the same UI to wp-admin/admin.php?page=jetpack#/sharing. We should avoid adding more UI elements that would only be available in Calypso.
I'll mark this as done since the "switch" process we now offer to folks with the block-based theme and still using the legacy sharing buttons handles that for us.
Activity
andrii-lysenko commentedon Dec 11, 2023
While working on #34115 (hook new block buttons to Sharing_Service) we basically has copied the logic needed inside the block, having it entirely separated from the Sharing Service.
We would still need to see, what would be the less confusing way to go, either entirely replace current logic (including central buttons controls in calypso), or make these work together.
I suggest we hold off this task until we get some feedback from Call For Testing.
jeherve commentedon Feb 21, 2024
#35542 brings us in this direction, but doesn't have any UI yet. We'll need to work on one, that will set the
jetpack_sharing_buttons_auto_addoption when toggled. It is necessary, since we do not want to add the block to all sites as soon as they activate the plugin.andrii-lysenko commentedon Feb 29, 2024
I think the easiest way would be if we could add UI to wp.com side on
https://wordpress.com/marketing/sharing-buttons/:site. We probably could add a notice there (for sites with block based themes), that has a link to Sharing Buttons docs and a button, that will switch to new behavior. Underhood, it would togglejetpack_sharing_buttons_auto_addfor the site and disable old Sharedaddy feature.Following up #35542 we could read these settings (could we?) and fill with buttons and styles from old module. Also, on
https://:site/wp-admin/admin.php?page=jetpack#/sharing, we might add another toggle, that will do the same for sites, where the old module enabled. If for some reason we can't do these manipulation from wp.com side, we could probably redirect users topage=jetpack#/sharingand utilize that switch.In terms of tasks I imagine it something like:
Official buttondefaulting to classic view andMorebutton which should be skipped at this time.https://:site/wp-admin/admin.php?page=jetpack#/sharing, adding a button/toggle that will automatically setjetpack_sharing_buttons_auto_addto true and old module feature to false.https://wordpress.com/marketing/sharing-buttons/:siteto either have a button that does everything automatically or navigates tohttps://:site/wp-admin/admin.php?page=jetpack#/sharingcc @keoshi
jeherve commentedon Mar 4, 2024
If we do, we would definitely need to add the same UI to
wp-admin/admin.php?page=jetpack#/sharing. We should avoid adding more UI elements that would only be available in Calypso.jeherve commentedon Mar 7, 2024
I created Automattic/wp-calypso#88294 to start with some improvements, and we're also discussing other options in https://github.com/Automattic/dotcom-forge/issues/5915
jeherve commentedon Oct 21, 2026
I'll mark this as done since the "switch" process we now offer to folks with the block-based theme and still using the legacy sharing buttons handles that for us.