Commit Graph

3274 Commits

Author SHA1 Message Date
Mike Jolley 0dc1754b91 Merge branch 'master' into update/store-owner-newsletter
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
#	assets/css/twenty-seventeen-rtl.css
#	assets/css/twenty-seventeen.css
#	assets/css/woocommerce-rtl.css
#	assets/css/woocommerce.css
2017-08-18 18:21:55 +01:00
Mike Jolley fcef2c7f71 Copy update 2017-08-18 18:21:23 +01:00
Mike Jolley 36f5827bc0 Merge pull request #16351 from pmgarman/feature-system-status-site-size-data
Add “site size” areas to system status report
2017-08-18 17:49:12 +01:00
Claudiu Lodromanean a4d3518a61 Merge pull request #16508 from woocommerce/remove-manual-discounts
Removed manual discounts code
2017-08-18 08:30:07 -07:00
Mike Jolley 1f692ffb64 Merge pull request #16485 from Korkey128k/master
Wrapped 'Delete selected row(s)' button in condition
2017-08-18 15:38:14 +01:00
Mike Jolley 1d95593131 Localise message 2017-08-18 10:58:11 +01:00
Mike Jolley e99471c0cd Removed manual discounts code 2017-08-18 10:36:10 +01:00
Corey Smith a6cf08d8cf Wrapped 'Delete selected row(s)' button in condition 2017-08-16 11:56:30 -05:00
Rami Yushuvaev 4ae42313ce i18n: Rewrite the translation string logic
The single translation string `by` is not easy to translate without a context. In this case, using the context function `_x()` is not the best solution.

A better way would be to create two complete translation strings for refund with a user and without a user.
2017-08-16 14:25:38 +03:00
Patrick Garman f19a63e1d7 Merge the DB and DB Table Size tables 2017-08-15 19:52:14 -05: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
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 9e8aa83d47 Escape product names on reports 2017-08-15 12:56:35 -03: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
Mike Jolley a44a57b5d9 Improve tools page styling 2017-08-15 12:05:34 +01:00
claudiulodro ae80d12d80 Merge master 2017-08-14 11:12:09 -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
Jeroen Sormani 607cd878e0 Settings parent construct (#16412)
* Miscellaneous cleanup of typos + change some return types for IDE helpers

* Call/use parent::__construct() to add filters for settings output, saving
2017-08-11 21:36:35 -03:00
Claudiu Lodromanean 15179b0e48 Merge pull request #16416 from woocommerce/manual-discounts-on-fees-shipping
Manual discounts on fees and shipping
2017-08-11 11:30:27 -07:00
claudiulodro 46e003d3c6 Remove shipping and discount lines 2017-08-11 11:10:44 -07:00
Mike Jolley 2accbdbd45 Load order after updating items 2017-08-11 16:16:22 +01:00
Mike Jolley 2c5a5b9409 Discounts should be last 2017-08-11 16:15:53 +01:00
Mike Jolley 5b4e5482dd Don't subtract negative taxes in net sales report
Fixes #16306
2017-08-11 12:38:09 +01:00
claudiulodro 3618ef1725 Handle couple todos 2017-08-10 13:37:05 -07:00
claudiulodro 9e70a74857 Styling 2017-08-10 13:29:32 -07:00
Mike Jolley e2599d83c8 Apply methods 2017-08-10 14:22:27 +01:00
claudiulodro a416ebe09b It kind-of works. 2017-08-09 14:55:35 -07:00
Mike Jolley e429a27ba4 No need for 'off' 2017-08-09 19:12:33 +01:00
Mike Jolley c556facd41 Fix percent coupon and display 2017-08-09 19:02:10 +01:00
Mike Jolley f71dc64d35 Manual discounts and negative taxes 2017-08-09 18:53:10 +01:00
Mike Jolley f0a9050241 HTML 2017-08-09 16:17:30 +01:00
Mike Jolley 6c0750e2e9 Discount lines and button 2017-08-09 14:55:42 +01:00
Mike Jolley 140771e759 Merge branch 'master' into improvement/versions
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
#	assets/css/helper-rtl.css
#	assets/css/helper.css
#	assets/css/twenty-seventeen-rtl.css
#	assets/css/twenty-seventeen.css
#	assets/css/wc-setup-rtl.css
#	assets/css/wc-setup.css
2017-08-09 10:08:06 +01:00
Mike Jolley 86a225a8d9 Newsletter signup 2017-08-08 18:00:47 +01:00
Mike Jolley 5443f44fcc Improve location step 2017-08-08 17:32:21 +01:00
Mike Jolley c486cea531 copy fix 2017-08-08 17:21:01 +01:00
Mike Jolley e82ca1c1a6 Styling and unknown plugin detection 2017-08-08 17:12:50 +01:00
Mike Jolley 202498298e Merge pull request #16374 from woocommerce/fix/12273-4
Product attributes helper functions implementation
2017-08-08 11:51:38 +01:00
Mike Jolley a4b81c2a22 Merge pull request #16252 from helgatheviking/issues-16221-settings-save-order
Move settings init/save to load-$settings hook. Closes #16221
2017-08-08 11:40:17 +01:00
Claudio Sanches 1a9b499be8 Apply attribute helper functions to importers and REST API 2017-08-07 22:34:25 -03:00
Claudio Sanches 70e0ab857e Implement attributes functions to admin 2017-08-07 22:34:20 -03:00
Claudio Sanches a3a3d7c242 Initial implementation of product attribute helper functions 2017-08-07 22:33:57 -03:00
claudiulodro c8a7ac8940 Unit tests 2017-08-07 14:31:58 -07:00
Mike Jolley 8db31eefe2 Fix variable stock status setting by using CRUD methods
Closes #16287
2017-08-07 15:16:38 +01:00
Patrick Garman 1314158a14 Add “site size” areas to system status report
The size of the site very much impacts the status of the site. This type of information would be extremely helpful when supporting a site.

1) post counts - can reveal high volumes of specific kinds of post types both within WC (orders, products, etc) or outside (revisions, attachments, third party ones, etc)

2) table sizes - a site with a 5MB postmeta table is very different than a site with a 5GB postmeta table, which is different than a site with a 50GB postmeta table, and require different kinds of support and focus.
2017-08-06 01:15:10 -04:00
claudiulodro c634ac6cf1 Prevent auto updates if dangerous. 2017-08-03 11:42:19 -07:00
Mike Jolley 958bd092ba Add date/time to hover.
Closes #16331
2017-08-03 08:48:17 +02:00
Mike Jolley d79ebf7a2f Typo in tag text, fixes #16332 2017-08-03 08:19:57 +02:00
claudiulodro 338f51df31 Remove duplicate class 2017-08-02 14:59:01 -07:00
claudiulodro 7f614d17d4 Modularize to corral different areas better 2017-08-02 14:57:17 -07:00
claudiulodro 7c0afc1fed Comments 2017-08-01 15:24:15 -07:00
claudiulodro 9b22463c69 Little cleanup 2017-08-01 15:17:35 -07:00
claudiulodro 343b3913a4 Updates screen modal. 2017-08-01 15:04:11 -07:00
Beka Rice e78b4d4d1e Fix PHP deprecation notice 2017-07-31 17:16:08 -04:00
Will G 3a6a8872f3 Fix script 'async' property typo in WP_Admin_Help 2017-07-28 16:05:06 -04:00
Kathy Darling fe0c190894 Move settings init/save to load-$settings hook. Closes #16221 2017-07-25 14:43:26 -04:00
Jaydeep Rami 46d3638089 Fix missing return statement (#16148)
* Fix missing return statement

* Fix missing return statement

* Fix missing return statement

* Fix missing return statement

* Fix missing return statement

* Fix missing return statement
2017-07-20 18:01:14 +01:00
Mike Jolley 916294b7d0 Use comment_status input name
Closes #16153
2017-07-19 15:18:33 +01:00
Mike Jolley 0d7cb826cb Restore transient 2017-07-17 19:36:45 +01:00
Mike Jolley 5642ee0c4d Only check active plugins 2017-07-17 19:35:14 +01:00
Mike Jolley 0b606c8bbe Styling and code tidy 2017-07-17 19:30:21 +01:00
Mike Jolley ece770490f Escape and localise 2017-07-17 18:14:38 +01:00
Mike Jolley 809ff9c31d correct escaping 2017-07-17 18:13:18 +01:00
Mike Jolley 8c17027eb6 Merge branch 'master' into improvement/versions
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
#	assets/css/helper-rtl.css
#	assets/css/helper.css
#	assets/css/twenty-seventeen-rtl.css
#	assets/css/twenty-seventeen.css
#	assets/css/wc-setup-rtl.css
#	assets/css/wc-setup.css
#	assets/css/woocommerce-rtl.css
#	assets/css/woocommerce.css
2017-07-17 18:04:28 +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
claudiulodro 35c4c7fbe6 v2 2017-07-14 13:47:29 -07:00
claudiulodro 129763dadf Split up notices 2017-07-14 12:44:16 -07:00
Claudio Sanches 4d3d377bcf Merge pull request #16127 from woocommerce/fix/16119
Importing products with relative fields and skus
2017-07-14 12:55:11 -03:00
Claudio Sanches 4f7b152b96 Merge pull request #16120 from woocommerce/fix/16118
Cast report data to floats
2017-07-14 12:34:00 -03:00
Mike Jolley f63b2e24df Merge pull request #16125 from websupporter/issue-16124
Switch to coupons internal get_email_restrictions() (solves #16124)
2017-07-14 12:34:43 +01:00
Mike Jolley 02dc61677a Improve cleanup of fails 2017-07-14 11:38:49 +01:00
websupporter 72baa43fe2 switch to coupons internal get_email_restrictions() 2017-07-14 13:37:00 +03:00
Mike Jolley 44ef034a94 Cast report data to floats
#16118
2017-07-14 10:26:07 +01:00
claudiulodro 40198bf2c8 Modal beta 2017-07-13 15:38:12 -07:00
Claudio Sanches 97f9dab0ce Applies wc_get_order_notes() on admin 2017-07-13 19:33:20 -03:00
claudiulodro addee6335c Save incase of accidental update 2017-07-13 13:16:35 -07:00
claudiulodro 20ebe8c193 Modal 2017-07-13 12:47:13 -07:00
claudiulodro 45ba7fcbbb Corral things together 2017-07-13 11:00:39 -07:00
Mike Jolley 37fc4c8f77 Ajaxify the product category filter (#16110)
* Ajaxify the product category filter

Closes #12773

* Min
2017-07-13 17:04:40 +01:00
Mike Jolley d63cf8c52f add next button to pointers and allow it to be dismissed
Closes #15858
2017-07-13 13:09:52 +01:00
claudiulodro b355e016cd Do notice in a pop-up 2017-07-12 12:38:19 -07:00
Konstantin Kovshenin 75e3f3973b Helper: Fix plugin information modals for some extensions.
Adds a woo- prefix to the slug when fetching update information
for themes and extensions. Allows us to look up these slugs later
when fetching plugin information and pass the correct product id
to the /info endpoint.
2017-07-12 19:14:48 +03:00
Konstantin Kovshenin c91922a004 Helper: Add a label to lifetime subscriptions. 2017-07-12 18:37:10 +03:00
Claudiu Lodromanean de21898b70 Merge pull request #16090 from woocommerce/fix/16084
Sanitize keys in reports class
2017-07-12 08:05:11 -07:00
webspecnick 49ba871795 Add enclosure and escape arguments to importer. Introduce filter to change importer arguments (#16053)
* Introduce woocommerce_product_csv_importer_args filter.

* Add extra args to WC_Product_CSV_Importer. Have fgetcsv use extra args

* Update to follow coding standards.
2017-07-12 12:11:44 +01:00
Mike Jolley 25cbd4ada8 Sanitize keys in reports class 2017-07-12 10:53:39 +01:00
claudiulodro 8dd21ec1c4 Resolve merge conflicts 2017-07-11 12:11:01 -07:00
claudiulodro c557a71f14 Better phrasing 2017-07-11 12:04:43 -07:00
claudiulodro 0444cdef3c Initial notice implementation 2017-07-11 11:59:39 -07:00
claudiulodro f79c4a254c Good progress 2017-07-11 07:52:40 -07:00
Mike Jolley 5c32abfe6b Merge pull request #16054 from woocommerce/fix/16043
Fix styling and connect button in non-english languages
2017-07-11 10:49:09 +01:00
Claudio Sanches 1c18a458be Merge pull request #15994 from woocommerce/fix/15964
Correct embed code
2017-07-10 15:30:25 -03:00
Mike Jolley e432d2d0ad Fix styling and connect button in non-english languages 2017-07-10 16:29:06 +01:00
Akeda Bagus 53807185a8
Fixed typos.
These typos are catched by `misspell` program.

```
find . -type f | grep -v assets | grep -v dummy-data | grep -v i18n | grep -v node_modules | grep -v .git | grep -v apigen |  xargs misspell -w
```

Some results were excluded because of 3rd party ownership and non-english
sentences.
2017-07-10 12:56:28 +07:00
Claudio Sanches 66895afb38 Added comment to remember about CloudFlare email obfuscation 2017-07-07 18:26:53 -03:00
Claudio Sanches 86d09b0c6a Avoid CloudFlare email obfuscation.
Closes #15082
2017-07-07 15:45:05 -03:00
Mike Jolley f79f5bb5cb Simply enables drag and drop sorting on the grouped product field
Fixes #14560
2017-07-07 14:20:30 +01:00
Claudio Sanches fe9dd86482 Merge pull request #16001 from woocommerce/fix/format
Fix code formatting
2017-07-06 18:29:53 -03:00
Claudiu Lodromanean 74d6c2378b Merge pull request #16000 from woocommerce/fix/csv-mapping
Change how mapping is posted
2017-07-06 11:37:24 -07:00
claudiulodro 863193bd34 Fix linting problems 2017-07-06 11:12:02 -07:00