Commit Graph

140 Commits

Author SHA1 Message Date
Claudio Sanches c520505dbe
Merge pull request #29809 from kapilpaul/fix/coding-style-in-class-wc-email
fix: coding style in class-wc-email.php
2021-05-11 18:02:39 -03:00
Kapil Paul 4ae714de56 fix: coding-style-in-class-wc-email.php 2021-05-02 00:52:38 +06:00
roykho 387e095a01 Update deprecated jQuery functions in includes folder 2021-04-28 16:21:59 -05:00
Rodrigo Primo 8ebead165e Replace usages of depracted jQuery.fn.click() event shorthand
This commit replaces all instances in WooCommerce codebase (except included third-party libraries) where jQuery.fn.click( handler ) event shorthand was used. This shorthand was deprecated in jQuery 3.3 (see https://github.com/jquery/jquery/issues/3214). The jQuery documentation was not updated yet (see https://github.com/jquery/jquery-migrate/issues/288 and https://github.com/jquery/api.jquery.com/issues/972).

jQuery.click() was not deprecated and so it was not replaced.
2020-11-18 15:27:46 -03:00
Rodrigo Primo 2399668a05 Simplify code per reviewer suggestion
See https://github.com/woocommerce/woocommerce/pull/28058#pullrequestreview-519096925
2020-11-11 16:09:33 -03:00
Rodrigo Primo 05cc0882e5 Replace deprecated jQuery code in includes/emails/class-wc-email.php
This commit replaces a call to the now deprecated jQuery.fn.toggle(handler, handler...) (https://api.jquery.com/toggle-event/) with a jQuery.click(). The deprecated call was used in the page where admins can edit e-mail templates (example: wp-admin/admin.php?page=wc-settings&tab=email&section=wc_email_customer_on_hold_order) to show or hide the contents of the template and at the same time change the label of the button. We are now using jQuery.click() with a if statement inside to decide which label to use.
2020-10-22 09:28:06 -03:00
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Christopher Allford 452e53d8af
Merge pull request #25630 from woocommerce/fix-25603
Replace {site_address} by {site_url} for consistency
2020-05-11 19:43:08 -07:00
vedanshujain 6612d1f859 Prune elements with display none to fix regression.
In an earlier emogridier version (til WC 3.9.3) this was happening by
default, however now we have to do this explicitly since we update
emogrifier to > 3.x.
2020-04-03 13:47:04 +00:00
Claudio Sanches 37a949f7bd Fixed coding standards 2020-04-01 14:56:04 -03:00
Rodrigo Primo e39db20eca
Add woocommerce_emogrifier action (#25829)
* add woocommerce_emogrifier action

* fix formating issue

* fix formating, again :"
;
2020-03-05 14:02:29 -03:00
Remi Corson c9092d5dbf backwards compatibility 2020-02-11 16:35:40 +01:00
Remi Corson 89f07da20d Replace {sitde_address} by {site_url} for consistency
Replace {sitde_address} by {site_url} for consistency in WooCommerce emails, for better consistency.
2020-02-11 10:46:32 +01:00
Claudio Sanches 6d123e0cc3 Tweaks on style inline method 2020-02-04 16:27:20 -03:00
Claudio Sanches 382e17817a Use Emogrifier composer package 2020-01-29 15:57:22 -03:00
Claudio Sanches d9c22d60be Use wp_mail() default args in WC_Email 2020-01-15 13:33:12 -03:00
Rodrigo Primo 193395ddf5 Simplify and modernize two methods
This commit replaces calls to call_user_func_array() with argument unpacking using the spread operator that was added in PHP 5.6 in the following methods:

- WC_Admin_Setup_Wizard::run_deferred_actions()
- WC_Mail::send()
2019-11-22 15:25:08 -03:00
Rodrigo Primo e292e95542 Update WPCS rule name that was change after an update 2019-11-21 12:17:10 -03:00
Jonathan Moore d88fdb6adf
add $this param to woocommerce_email_additional_content_
add $this param to woocommerce_email_additional_content_ filter to be consistent with 'woocommerce_email_subject_' .  and 'woocommerce_email_heading_' .  filters.
2019-08-14 08:02:04 +01:00
Gerhard 7484bd9199 Remove duplicate tooltip text 2019-08-07 17:49:38 +02:00
Claudio Sanches edd0e7de8c Bump template versions 2019-05-21 17:53:03 -03:00
Claudio Sanches 4a99a11009 Merge branch 'master' into update/22895 2019-05-21 17:46:16 -03:00
Ewout Fernhout fafc829c4d
Add $this parameter to email class hooks
see #23209
2019-04-09 15:19:21 +02:00
Mike Jolley ded4f8bf3e Use string to avoid 5.2 warning 2019-03-27 11:35:45 +00:00
Mike Jolley b09a5f8003 Update Emogrifier 2019-03-26 14:24:21 +00:00
mindmantra 8cb0e42551 Add $this context to woocommerce_email_styles filter.
see: #23026
2019-03-14 12:13:55 +05:30
Mike Jolley ff7a941235 Set reply-to address for all emails 2019-03-08 15:55:56 +00:00
Mike Jolley 3463f37f49 Add additonal content setting to each email 2019-03-04 16:33:05 +00:00
Mike Jolley 64bc5c2e99 Define commonly used placeholders in main class 2019-03-04 15:30:56 +00:00
Fitim a50f279816 Add filters for mail callback and mail callback params in WC_Email::send method 2019-01-09 12:28:32 +01:00
claudiulodro 38324edc71 Only wordwrap plain emails 2018-07-06 13:29:01 -07:00
Mike Jolley 217e825e22 supports_emogrifier 2018-06-15 12:43:27 +01:00
Rodrigo Primo 6f7d34d11e Fix phpcs violations in includes/emails/class-wc-email.php 2018-03-07 14:27:56 -03:00
Rodrigo Primo 575e095190 Fix PHPCS violations in includes/emails automatically using phpcbf 2018-03-07 11:15:17 -03:00
Mike Jolley 7a68cb9c12 Update regex 2018-02-20 16:04:42 +00:00
Mike Jolley 0cda2dba82 Convert more dollar entries for plain text emails 2018-02-20 16:04:42 +00:00
Caleb Burks c21cc2e8fe Replace “Cheatin’ uh?” with friendlier messages 2018-02-07 17:01:12 -05:00
Umangvaghela 10fe92cfc1 Fix-minor-changes 2017-10-16 16:33:12 +05:30
Mike Jolley 6647b35585 Restore blogname placeholder, but do not list in admin
Closes #17200
2017-10-13 17:42:12 +01:00
Clifford 1474350f0f Correct docblock @return
From incorrect `string` to correct `array`
2017-10-10 10:31:16 -05:00
Mike Jolley 11d6b4e7d8 Ensure we have arrays in find/replace
Closes #16778
2017-09-14 17:37:23 -07:00
Boro Sitnikovski d0db4c6934 Reintroduce find and replace variables 2017-09-07 09:58:54 +02:00
Mike Jolley 10a873a808 Remove find/replace definition 2017-09-06 10:52:45 +01:00
Mike Jolley cbe4e26c97 Legacy find/replace handling
Closes #16705
2017-09-05 10:15:32 +01:00
Mike Jolley 21bd0e5397 Better handling for legacy email find/replace filters
Closes #16659
2017-08-31 12:21:02 +01:00
Mike Jolley 05dc9d3c0f Improve email directory writable checking
Closes #16539
2017-08-21 11:32:21 +01:00
sergey.r 62d078edf5 Add filters to make possible send emails in language different from default 2017-08-03 14:58:44 +03:00
Claudio Sanches cb3e1de0be Fixed coding standards 2017-07-20 18:14:53 -03:00
Mike Jolley 28cb0909c8 Add placeholders array used in descriptions and for find and replace
Fixes #16156
2017-07-19 14:25:00 +01:00
Jaydeep Rami 3522857d23 Fix typo in WooCommerce plugin (#16135)
* Fixed typo

* Fixed more typo

* Fixed more typo

* Fix tyop

* Fix more typo

* Fix more typo

* Fix typo

* Fix typo

* Fix typo

* Fix typo datatime object

* Fix short name of compat

* Fix typo: update short name

* Fix typo "deactive" to "deactivate" and short BW - Compat

* Fix typo "Backwards compat"

* Fix typo 'parameters'

* Fix more typo 'pararmeters'

* Fix typo 'compund'

* FIx typo order

* Fix typo

* Fix typo 'incorrecly'

* Fix typo 'genarate'

* Fix typo 'reletive'

* Fix typo 'Handly'

* Fix typo 'rotatated'

* Fix typo

* Fix typo 'additonal'

* Fix typos
2017-07-17 11:10:52 +01:00