Skip to content
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

Fix for the "note added to your order" mail (+ possibly others sent over ajax) #10

Merged
merged 1 commit into from
Apr 1, 2015

Conversation

mweimerskirch
Copy link
Contributor

Append the language to ajax links on the order edit page, so that mails are sent in the language the customer used during the order process

Needed, so the "note added to your order" mails are sent in the correct language
Issue #3

…ls are sent in the language the customer used during the order process

Needed, so the "note added to your order" mails are sent in the correct language
Issue qTranslate-Team#3
johnclause added a commit that referenced this pull request Apr 1, 2015
Fix for the "note added to your order" mail (+ possibly others sent over ajax)
@johnclause johnclause merged commit 1899b80 into qTranslate-Team:master Apr 1, 2015
@johnclause
Copy link
Member

I am a bit confused, why would we add another function on the same filter? Cannot we do all in one function? I can merge it in one if you do not mind?

@mweimerskirch
Copy link
Contributor Author

I see a few reasons as to why not to combine them. Keeping them separate increases readability because the functions stay more modular. Also, both of these filters are more like "worarounds" than really clean solutions, so If one of the needs to be replaced for a future WooCommerce update, it's "tidyer" if there are separate functions. A third reason is that you can disable them individually for testing purposes by just commenting out the corresponding "add_filter" line.
You can of course merge them if you don't agree. This might just be my personal opinion.

@johnclause
Copy link
Member

Yes, that all makes sense, thanks.

@mweimerskirch mweimerskirch deleted the issue_3_revison_2 branch April 2, 2015 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants