Skip to content

Fix Email Footer Text #37

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

Merged
merged 1 commit into from
Mar 7, 2018
Merged

Fix Email Footer Text #37

merged 1 commit into from
Mar 7, 2018

Conversation

timmyc
Copy link
Contributor

@timmyc timmyc commented Mar 2, 2018

This morning @dougaitken informed me via slack that the issue around custom email footer text was still lingering. While we did remove the email template over-rides, I failed to notice the logic in inc/wc-calypso-bridge-email-site-title.php which is filtering the footer text too.

The logic was added in woocommerce/wc-api-dev#32 by @justinshreve so wondering if this is okay to remove, or if there is still a flow where this can be problematic.

Since this code runs against all pressable woo installs, part of me feels like we should just remove it, and look at other ways to fix the initial problem these filters were aiming to solve. But really I'd be interested to hear the back story because the initial PR steps to create the problem seem pretty edge case, and I wasn't sure if it was changing the site title in calypso or in wp-admin.

Confirmed that this branch fixes #7

@timmyc timmyc self-assigned this Mar 2, 2018
@emdashcodes
Copy link

I'm trying to remember back. Essentially, if you changed your site title (via wp-admin or Calypso), the footer text would still contain the old site title. When people were creating their stores -- this would literally read "Site Title -- Powered by WooCommerce" and we offer no email setting in Calypso to change this.

Since then, woocommerce/woocommerce#17039 was addressed which adds a replacement variable. I think it would also be trivial to add a footer text setting to https://wordpress.com/store/settings/email/:site now that we have a settings screen.

Either way, I think removing this filter is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Match footer text behaviour with WooCommerce Core
2 participants