Commit Graph

105 Commits

Author SHA1 Message Date
Mike Jolley 8ad8a4efa5 Deprecation functions should not output errors during REST requests. 2019-03-21 16:26:33 +00:00
Mike Jolley a3c2dcd8f2 Update from master 2019-03-08 09:50:56 +00:00
Mike Jolley f6c6c18242 Update from master 2019-03-07 12:50:38 +00:00
Mike Jolley 47a5c39ea1 deprecate wc_get_min_max_price_meta_query 2019-02-11 15:45:09 +00:00
Mike Jolley 6b58960660 deprecated functions 2019-02-08 13:16:05 +00:00
Mike Jolley 4233cd778c @deprecated 3.6.0 2019-02-08 13:11:58 +00:00
Mike Jolley 32ae0192e5 Use WP term meta functions 2019-01-25 20:47:54 +00:00
Mike Jolley 8823559880 get rid of old term meta table 2019-01-25 20:44:25 +00:00
Claudio Sanches d27410eacc Introduced new wc_deprecated_hook function as alias to _deprecated_hook 2017-11-22 14:47:22 -02:00
Mike Jolley db4e630600 Replace thumbnail names 2017-11-07 18:48:51 +00:00
Mike Jolley 6701917e5a Remove need for wc_get_core_supported_themes 2017-11-07 12:17:03 +00:00
Mike Jolley 5d500ba5fb wc_caught_exception method 2017-11-01 11:41:53 +00:00
Claudio Sanches 6d7da18d1c Use get_avatar_url() in wc_get_customer_avatar_url() 2017-06-09 17:17:43 -03:00
Claudio Sanches df0ec12fb4 Deprecated wc_get_customer_avatar_url() in favor of get_avatar_url()
And remove duplicated code.
2017-06-09 16:25:57 -03:00
Mike Jolley 34227d826f Add backtrace to wc_doing_it_wrong 2017-04-13 14:01:58 +01:00
Claudio Sanches 59c2849736 Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
Mike Jolley bbf8e750ce Tidy up includes 2017-02-16 11:46:01 +00:00
Claudiu Lodromanean ca541f5704 Fix PHP 5.2 compat error 2017-02-15 13:18:46 -08:00
Claudiu Lodromanean 829fa246f2 Formatting 2017-02-15 12:13:29 -08:00
Claudiu Lodromanean e8579c649c Deprecated hook handler unit tests 2017-02-15 11:34:14 -08:00
Mike Jolley adb718b71e Missing include 2017-02-15 11:45:07 +00:00
Mike Jolley c53d0cc89c Correctly deprecate all methods and move action/filter code 2017-02-14 18:55:30 +00:00
Brent Shepherd 7a77c70d2a Fix "Undefined variable: function" notice
Triggered whenever wc_deprecated_argument() is called in an Ajax request.

Related to #12889
2017-01-26 16:31:11 -08:00
Claudio Sanches 08644c6f42 Missing space 2017-01-15 00:21:02 -02:00
Justin Shreve 39fe17ec45 Add hooks when error_logging deprecation notices on AJAX calls. 2017-01-05 10:54:10 -08:00
Mike Jolley 758f3a21a4 Typo 2016-12-16 10:36:21 +00:00
Mike Jolley b463bcc4a0 Fix deprecated filter mapping 2016-12-12 10:58:27 +00:00
Mike Jolley 43d362d107 Tidy, refactor, and split up methods in checkout class 2016-11-25 21:46:34 +00:00
Mike Jolley 6dc6e43d08 Add replacement to log entry 2016-11-23 17:41:58 +00:00
Mike Jolley d7dfdd3d10 Wrap all deprecation calls. 2016-11-23 16:15:00 +00:00
Mike Jolley c933f82961 Refunds 2016-11-17 16:53:13 +00:00
Mike Jolley b37db6eb7b Getters 2016-11-17 11:22:24 +00:00
Mike Jolley c18f6efeb4 Conflicts from master 2016-11-15 11:52:05 +00:00
Mike Jolley ac6bda2f62 Product crud abstract todos (#12316)
* Get dimensions and weights, with soft deprecation

* Product attributes

* Ratings

* Fix read method

* Downloads

* Feedback

* Fix up store
2016-11-11 15:31:00 +00:00
Mike Jolley 4fc03c9930 Revert "[Product CRUD] Abstract todos (#12305)"
This reverts commit 9a6136fcf8.
2016-11-11 11:58:57 +00:00
Mike Jolley 9a6136fcf8 [Product CRUD] Abstract todos (#12305)
* Get dimensions and weights, with soft deprecation

* Product attributes

* Ratings

* Fix read method

* Downloads

* Feedback
2016-11-11 11:43:52 +00:00
Krzysztof Grabania 4711066490 Removed empty string param in _deprecated_function function (#12301)
`_deprecated_function` has conditional which is checking if third param (replacement) is null. Passing replacement as empty string to this function will fail this test and the end of triggered error will look like this: `Use instead.` instead of `with no alternative available.`. This PR removes all occurrences of empty strings in this function.
2016-11-10 10:17:32 +00:00
Mike Jolley c4facef4bf Remove todo 2016-11-09 17:34:41 +00:00
Mike Jolley 8a78cc212b Remove _wc_save_product_price 2016-11-09 17:32:40 +00:00
Mike Jolley 09ea4ba91f [Product CRUD] Variable, variation, notices, and stock handling (#12277)
* No longer needed

* Remove old todos

* Use getters in admin list

* Related and upsells update for CRUD

* Fix notice in gallery

* Variable fixes and todos

* Context

* Price sync

* Revert variation attributes change

* Return parent data in view context

* Defer term counting

* wc_find_matching_product_variation

* Stock manage tweaks

* Stock fixes

* Correct id

* correct id

* Better sync

* Data logic setter fix

* feedback
2016-11-09 16:10:37 +00:00
Mike Jolley 31e5882bb8 [Product CRUD] Getter setter proxy methods (#12236)
* Started on variation changes

* Stock functions

* Variation class

* Bulk change ->id to get_id() to fix variation form display

* Missing status

* Fix add to cart

* Start on stored data save

* save variation

* Save_variations

* Variation edit panel

* Save variations code works.

* Remove stored data code and fix save

* Improve legacy class

* wc_bool_to_string

* prepare_set_attributes

* Use wc_get_products

* More feedback fixes

* get_prop implementation in abstract and data classes

* Implement set_prop

* Change handling

* Array key exists

* set_object_read
2016-11-09 16:07:29 +00:00
Mike Jolley 5f4dbdb733 [Product CRUD] Variations - setters, getters and admin. (#12228)
* Started on variation changes

* Stock functions

* Variation class

* Bulk change ->id to get_id() to fix variation form display

* Missing status

* Fix add to cart

* Start on stored data save

* save variation

* Save_variations

* Variation edit panel

* Save variations code works.

* Remove stored data code and fix save

* Improve legacy class

* wc_bool_to_string

* prepare_set_attributes

* Use wc_get_products

* More feedback fixes

* Feedback fixes
2016-11-09 16:05:49 +00:00
opportus 8123ba6184 improved structured data - merge conflict fix 2016-09-14 22:15:49 +02:00
Aristeides Stathopoulos 734f284fa4 WordPress.PHP.YodaConditions.NotYoda 2016-09-08 01:32:24 +03:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
opportus 6c1990c3cf improved structured data - some final little tweaks 2016-08-15 14:10:14 +02:00
opportus 5535da6a5b improved structured data - added generate_output_structured_data() method
| modified some methods names | few other tweaks
2016-08-15 00:39:01 +02:00
opportus 42637e85c7 improved structured data - class refactor - revision2 + coding standards tweaks 2016-08-11 14:58:05 +02:00
opportus 39dce5a450 improved structured data - tabulation fix 2016-08-11 11:17:14 +02:00
opportus b61aae01bf improved structured data - email order structured data integration +
WC_Structured_Data refactor + coding standards tweaks
2016-08-11 00:23:26 +02:00