Commit Graph

68 Commits

Author SHA1 Message Date
Michael P. Pfeiffer 3e36432d94 Widgets: show instance in Rest API 2021-05-31 12:20:57 +02:00
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Christopher Allford 6ad091a9b7 Changed all of the constant accesses into corresponding Automattic\Jetpack\Constants usages 2020-01-28 21:21:29 -08:00
Claudio Sanches 78c5a37b4b Prevent PHP notices in WooCommerce widgets using Gutenberg's Legacy Widget Block 2019-08-01 14:43:59 -03:00
Mike Jolley a4acf5643a
Merge pull request #22533 from woocommerce/fix/21265
Exclude `paged` from price slider
2019-02-04 10:18:51 +00:00
Mike Jolley 8b7414cfb5 Apply fix to rating filter 2019-02-01 14:13:37 +00:00
Mike Jolley 74cd1ced37 Merge branch 'fix/20710' 2019-01-31 13:37:02 +00:00
claudiulodro 8078e6bfc2 Simplified title check that works on all wc widgets 2019-01-24 10:47:05 -08:00
Ron Rennick 8709351994 update function name to `wc_attribute_taxonomy_slug` 2019-01-23 11:11:27 -04:00
Ron Rennick b868b484f7 fix merge conflicts 2019-01-23 10:53:42 -04:00
Gerhard 98948a2faf PHPCS fixes 2019-01-17 08:32:42 +02:00
Mike Jolley 848eecf6a6
Merge pull request #21537 from jespervnielsen/patch-2
allow-filtering-on-wiget-get_current_page_url
2019-01-07 13:12:43 +00:00
Mike Jolley 0c76db4093 Get instance setting defaults so it shows in customiser before save 2019-01-04 16:11:36 +00:00
Faisal Alvi 8dbb795610 abs-wc-widget-coding-stds
Few coding standard fixes in the file abstract-wc-widget.php
2018-12-07 18:57:03 +05:30
Ron Rennick e8ec6df3ff phpcs sniff fixes, `wc_attribute_taxonomy_name_raw()` for abstract-wc-widget.php 2018-12-03 11:31:47 -04:00
Jesper V Nielsen 8799de8477
fix-missing-colon 2018-10-12 09:43:43 +02:00
Jesper V Nielsen 1e8692aeb1
allow-filtering-on-wiget-get_current_page_url
Allow for filtering on get_current_page_url() in widgets, to make it possible to extend the parameteres, and keep them.

If building some functionality, where wee work with the parameters in the url, they will be removed, when using the links produced by wc_widget - for example the layered nav, or the price range.

With the filter, we kan add out custom parameter, to the url generated by these widgets.
2018-10-12 08:53:46 +02:00
Risto Niinemets 174fd95765 fix undefined index attribute in layered nav widget without attributes (#20544) 2018-06-15 15:20:21 +01:00
Mike Jolley 14cbf7b0f0 Pass scheme without hyphen 2018-05-09 17:06:34 +01:00
Peter Fabian 424213bc17 Applied the filter inside the function.
Added optional scheme parameter and @since docstring according to the code review.
2018-05-09 09:42:28 +02:00
Peter Fabian 92180d2b42 Add scheme to widget id when caching objects.
This should prevent cache from serving mixed content when widget cache is preloaded with http version, then accessed via https.
2018-05-03 14:10:04 +02:00
Gerhard Potgieter 5075fb4964 PHPCS passing for abstract-wc-widget.php 2018-03-05 15:21:04 +02:00
Boro Sitnikovski 59c1aa0928 Add since tag 2017-12-14 15:43:35 +01:00
Boro Sitnikovski 080ece9588 Change method name 2017-12-14 15:37:42 +01:00
Boro Sitnikovski e1b753122e Deprecate the function as a whole 2017-12-14 10:23:51 +01:00
Boro Sitnikovski e061cb122c Fix warning for plugins that override this method with the specified parameter 2017-12-14 10:09:25 +01:00
Mike Jolley 1a7d7dd127 Widget base url 2017-11-09 11:24:29 +00:00
Mike Jolley 1b22d97be2 Combined get_page_base_url 2017-11-09 11:16:47 +00: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 da91857a84 Correctly append cache
Fixes #15407
2017-06-02 13:34:09 +01:00
Mike Jolley c16acc6b51 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	assets/css/wc-setup-rtl.css
#	assets/css/wc-setup.css
2017-05-23 19:00:24 +01:00
Mike Jolley d3666738d8 Merge branch 'pr/15069' 2017-05-23 18:56:58 +01:00
Mike Jolley 00e5189a05 Merge pull request #15070 from rasmusbe/phpdoc-missing-return-throws
Phpdoc: Add missing return and throws
2017-05-23 18:50:58 +01:00
Rasmus Bengtsson 185934fad9 Fix phpdoc to include params and correct types 2017-05-15 13:50:52 +02:00
Rasmus Bengtsson 4f00d7e5e3 PHPDoc: Add missing return statement 2017-05-15 13:37:59 +02:00
Mike Jolley bc4d36fd3f Add abspath checks
Closes #14999
2017-05-10 19:03:19 +01:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
Shiva Poudel d35ecad8c9 Implementing customize selective refresh for widgets 2016-05-21 19:07:03 +05:45
Mike Jolley c22d9a3c14 Use empty instead of null
Closes #10944
2016-05-19 11:47:08 +01:00
Mike Jolley 75cbb74520 Rating widget standards 2016-02-09 15:18:27 +00:00
Fredrik Forsmo 513db93bd4 Improve phpdoc comments for methods in abstract WC_Widget class 2016-01-04 15:37:12 +01:00
Mike Jolley 4b45812bac Only one sanitise hook is needed 2015-12-14 12:48:03 +00:00
Shiva Poudel afd3aa2fc7 Let the additional third party widgets create and sanitize form fields 2015-12-08 16:19:49 +05:45
Shiva Poudel 88d7713a86 Modified checkbox class value from widefat 2015-12-05 05:26:28 +05:45
Shiva Poudel 69d6a25f5e Refactor to format the value based on widget settings type 2015-12-05 05:25:51 +05:45
Claudio Sanches d15c711855 Merge branch 'master' of github.com:woothemes/woocommerce 2015-12-04 21:17:47 -02:00
Claudio Sanches 92582e21cb Properly sanitize textarea field for widgets #9762 2015-12-04 17:14:42 -02:00
Shiva Poudel b3cd28e323 Added textarea widget form field 2015-12-04 21:23:19 +05:45
Mike Jolley 1c364e79e4 Enforce min and max
Closes #9761
2015-12-04 14:53:25 +00:00
Shiva Poudel 2881587c44 Don't use key as default class 2015-12-02 15:47:57 +05:45