Commit Graph

22572 Commits

Author SHA1 Message Date
Mike Jolley 201b3bc056 Merge pull request #16466 from woocommerce/fix/rounding
Fix discounts rounding issues
2017-08-16 11:28:09 +01:00
Mike Jolley 38ab37597c Merge pull request #16467 from ramiy/patch-1
i18n: Simpler translation string with placeholders
2017-08-16 11:26:06 +01:00
Mike Jolley 34ae983cc9 Merge pull request #16470 from ramiy/patch-4
i18n: Simpler translation string with placeholders
2017-08-16 11:25:48 +01:00
Mike Jolley bf84592e87 Merge pull request #16469 from ramiy/patch-3
i18n: Merge two similar translation strings
2017-08-16 11:25:23 +01:00
Mike Jolley 875956c3aa Merge pull request #16468 from ramiy/patch-2
i18n: Simpler translation string with placeholders
2017-08-16 11:24:56 +01:00
Mike Jolley 812ee4b917 Merge pull request #16475 from woocommerce/fix/image-zoom-2017
Fix disappearing image when zoomed on touch devices whilst using 2017 theme
2017-08-16 10:47:08 +01:00
James Koster a2740cf7a5 Fix disappearing image when zoomed on touch devices 2017-08-16 10:20:14 +01:00
Rami Yushuvaev 125ead910a i18n: Simpler translation string with placeholders
One more... replacing function name with `%s` placeholder, this way translators can't misspell the function name.
2017-08-16 00:42:32 +03:00
Rami Yushuvaev 43744e4f27 i18n: Merge two similar translation strings
Replace:

`wp_remote_get() failed. Contact your hosting provider.`
`wp_remote_post() failed. Contact your hosting provider.`

With:

`%s failed. Contact your hosting provider.`

Note:

This also a good practice because the function name is outside of the translation string, this way the translator can't misspell the function name.
2017-08-16 00:32:36 +03:00
Rami Yushuvaev d1f4acc730 i18n: Simpler translation string with placeholders
Replace:

`wc_get_product should not be called before the woocommerce_init action.`

With:

`%1$s should not be called before the %2$s action.`
2017-08-16 00:26:14 +03:00
Rami Yushuvaev 0087536296 i18n: Simpler translation string with placeholders
Replace:

`WC_Logger::log was called with an invalid level "%s".`

With:

`%1$s was called with an invalid level "%2$s".`
2017-08-16 00:22:46 +03:00
claudiulodro 9a47146716 Fix discounts rounding issues 2017-08-15 14:11:25 -07:00
Claudio Sanches 88e0138be4 Merge pull request #16464 from iickoo/patch-1
Update add-to-cart-variation.js
2017-08-15 16:28:47 -03:00
iickoo 9bd01a8d44 Update add-to-cart-variation.js 2017-08-15 20:55:19 +02:00
Claudio Sanches 82a6de2e49 Merge pull request #16459 from ramiy/patch-3
i18n: Avoid using HTML tags in translation strings
2017-08-15 14:48:35 -03:00
Claudio Sanches 3a12f7b494 2.1.2 db update functions 2017-08-15 13:01:28 -03:00
Claudio Sanches 339ab41bf1 Remove unfiltered_html capability from Shop Managers 2017-08-15 12:57:12 -03:00
Claudio Sanches 9e8aa83d47 Escape product names on reports 2017-08-15 12:56:35 -03:00
Claudio Sanches 0fec9dbfe7 Merge pull request #16458 from ramiy/patch-2
i18n: Simpler translation string with placeholders
2017-08-15 12:49:31 -03:00
Mike Jolley 129eae141a Fix custom discount amounts not multiplying by qty 2017-08-15 16:25:39 +01:00
Mike Jolley 3c18d5e849 Adjust total discount for ex.tax 2017-08-15 16:25:39 +01:00
Claudio Sanches 7a44c3d700 Merge pull request #16457 from ramiy/patch-1
i18n: Simpler translation string with placeholders
2017-08-15 12:05:32 -03:00
Mike Jolley de35d9ba02 Apply woocommerce_coupon_get_discount_amount without cents
cc @claudiulodro
2017-08-15 15:29:22 +01:00
Claudio Sanches a6017741ad Merge pull request #16456 from woocommerce/update/status-tools
Tool to purge webhook logs
2017-08-15 11:02:27 -03:00
Mike Jolley 835d0ab450 Fix remove tax column
Closes #16443
2017-08-15 14:51:12 +01:00
Rami Yushuvaev 6f7c817b78 i18n: Avoid using HTML tags in translation strings
This PR moves the `<strong>` HTML tags from the translation strings.

Replacing: `Order scheduled for: <strong>%1$s</strong>.`
With: `Order scheduled for: %s.`

We did the same in WordPress core across several releases (4.3 - 4.7). Because it's makes the translation process to RTL language (like Hebrew) much easier.
2017-08-15 15:07:55 +03:00
Rami Yushuvaev 7ce117a0ca i18n: Simpler translation string with placeholders
Replace:

`The provided handler <code>%s</code> does not implement WC_Log_Handler_Interface.`

With:

`The provided handler %1$s does not implement %2$s.`
2017-08-15 14:48:42 +03:00
Rami Yushuvaev 7ad61068e1 i18n: Simpler translation string with placeholders
Replace:

`The class <code>%s</code> provided by woocommerce_logging_class filter must implement <code>WC_Logger_Interface</code>.`

With:

`The class %1$s provided by %2$s filter must implement %3$s.`
2017-08-15 14:39:41 +03:00
Mike Jolley 392ce417bc docblocks 2017-08-15 12:21:12 +01:00
Mike Jolley 3852ce59c8 Tool to purge webhooks 2017-08-15 12:15:17 +01:00
Mike Jolley a44a57b5d9 Improve tools page styling 2017-08-15 12:05:34 +01:00
Mike Jolley f62d505797 Merge pull request #16427 from nyordanov/variation-permalink-infinite-loop
Prevent infinite recursion in WC_Post_Data::variation_post_link()
2017-08-15 10:59:36 +01:00
Mike Jolley 4101e313bb Merge pull request #16392 from woocommerce/feature/admin-apply-discount-15501
[WIP] Admin discounts
2017-08-15 10:07:00 +01:00
Mike Jolley 70248b2fa6 Merge pull request #16419 from woocommerce/fix/1645
Use array_replace in order item apply_changes
2017-08-15 09:59:02 +01:00
claudiulodro 2eb107b0af Add 5.2 fallback 2017-08-14 11:45:54 -07:00
claudiulodro ae80d12d80 Merge master 2017-08-14 11:12:09 -07:00
Claudiu Lodromanean f3bf4a8cb1 Merge pull request #16449 from woocommerce/apply-discount-todos
Calculate coupon taxes in order class
2017-08-14 11:08:05 -07:00
Claudiu Lodromanean 28c5af4922 Merge pull request #16440 from woocommerce/fix/16422
Adjust coupon user limit logic
2017-08-14 10:24:51 -07:00
Claudiu Lodromanean 1f2891cfd3 Merge pull request #16439 from woocommerce/fix/16432
Switch CLI tools command over to v2 API
2017-08-14 10:04:02 -07:00
Claudiu Lodromanean f0126852a5 Merge pull request #16438 from woocommerce/fix/16405
Add error handling for wp_insert_term
2017-08-14 10:01:22 -07:00
Rami Yushuvaev 17d10b3e9f i18n: Fix some translation strings (#16441)
* i18n: permissions -> permission

* i18n: permissions -> permission
2017-08-14 17:25:08 +01:00
Mike Jolley 33be0b5741 Remove todos 2017-08-14 16:44:59 +01:00
Mike Jolley be11c1089f Fix tests 2017-08-14 16:03:50 +01:00
Mike Jolley 7ddfe0703b Store coupon item taxes 2017-08-14 15:57:51 +01:00
Mike Jolley c74835ec31 Use WP_User_Query 2017-08-14 12:51:04 +01:00
Mike Jolley 40757ddf86 Search given email against all user fields for matches. 2017-08-14 12:28:19 +01:00
Mike Jolley 6f4fd61a4f Do not check if logged in 2017-08-14 12:28:03 +01:00
Mike Jolley 147a7f9419 Switch CLI tools command over to v2 API
Closes #16432
2017-08-14 10:45:44 +01:00
Mike Jolley 423d46f864 Merge pull request #16434 from ramiy/patch-1
Remove redundant CSS
2017-08-14 10:42:05 +01:00
Mike Jolley c63e94d299 Add error handling for wp_insert_term
Fixes #16405
2017-08-14 10:40:00 +01:00