New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PLANET-4540 Fix facebook share and remove unused code #182
Conversation
ad3e466
to
114ce22
Compare
@@ -243,7 +243,7 @@ function empty_string_to_false_in_link_new_tab_in_columns_blocks( $block ): arra | |||
// Yes, that's right, WordPress doesn't follow its own rules here so we have a camel among snakes. | |||
if ( 'planet4-blocks/columns' === $block['blockName'] ?? null ) { | |||
foreach ( $block['attrs']['columns'] ?? [] as $key => $column ) { | |||
if ( true !== $column['link_new_tab'] ) { | |||
if ( isset( $column['link_new_tab'] ) && true !== $column['link_new_tab'] ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch 👍
Hi @Inwerpsel - could you please changes the get |
PR looks good to me, the changes works as per JIRA ticket req. General finding -
|
* Facebook share now opens in new tab, providing the social_media_message as quoted text * All SocialMediaCards code was initially copied from the Gallery block as a starting point, however this was never cleaned up. This removes some of it, except for the focal points, which don't work but it is not clear whether it should be removed or the functionality should be implemented. * Remove the conversion from shortcode. * Prevent notices for the link_new_tab fix
114ce22
to
7d1581c
Compare
Yeah I saw some of those issues as well, but it's so much that it deserves its own ticket. Perhaps we can take those remarks along when we fix the focal point behavior. |
social_media_message as quoted text
block as a starting point, however this was never cleaned up. This
removes some of it, except for the focal points, which don't work but it
is not clear whether it should be removed or the functionality should be
implemented.