Commit Graph

475 Commits

Author SHA1 Message Date
Rodrigo Primo 7337ab60c2 Fix PEAR.Functions.FunctionCallSignature violations
This commit fixes all violations of the PEAR.Functions.FunctionCallSignature sniff automatically using phpcbf.
2019-12-20 15:25:23 -03:00
Rodrigo Primo 24cc92e67a Fix Squiz.PHP.EmbeddedPhp violations
This commit fixes all violations of the Squiz.PHP.EmbeddedPhp sniff automatically using phpcbf.
2019-12-20 15:06:29 -03:00
Rodrigo Primo 86c1b61f03 Fix Generic.WhiteSpace.ScopeIndent violations
This commit fixes all violations of the Generic.WhiteSpace.ScopeIndent sniff automatically using phpcbf.
2019-12-20 14:48:11 -03:00
Rodrigo Primo 2c74233be2 Fix WordPress.WhiteSpace.DisallowInlineTabs violations
This commit fixes all violations of the WordPress.WhiteSpace.DisallowInlineTabs sniff automatically using phpcbf.
2019-12-20 14:27:07 -03:00
Rodrigo Primo 23ebeceb0e Fix PHPCS errors automatically using PHPCBF 2019-12-13 16:30:29 -03:00
Rodrigo Primo eefab9d672
Merge pull request #25093 from JoryHogeveen/patch-1
Before and after product list hooks
2019-12-13 16:28:45 -03:00
Gerhard Potgieter e300bc47b4
Merge pull request #25059 from R33D3M33R/patch-1
Allow related title changes
2019-12-06 15:20:57 +02:00
Peter Fabian 8379e46772
Merge pull request #24278 from woocommerce/fix/23299
Display schema for the latest 5 reviews inside product's schema
2019-11-27 17:56:54 +01:00
Andrej Mernik 296cb8c3c8
Change phpcs:ignore syntax 2019-11-22 07:07:27 +01:00
Jory Hogeveen 99407495b7
Add action parameters for context 2019-11-21 13:35:15 +01:00
Jory Hogeveen 2f39d0a6fb
Before and after product list hooks
Allows adding extra rows.
2019-11-21 13:28:43 +01:00
Andrej Mernik 70cd18d047
Globals check override
Use the cross-sells.php globals check override
2019-11-21 11:12:33 +01:00
Andrej Mernik c40c626886
Coding standard check fixes 2019-11-21 11:02:50 +01:00
Andrej Mernik 9aa8f5f5b3
Further coding standards refactoring 2019-11-20 14:23:57 +01:00
Andrej Mernik 45e8101e4a
Coding standard fixes 2019-11-20 14:16:13 +01:00
Andrej Mernik 8a949a3b77
Version bump 2019-11-18 13:44:11 +01:00
Andrej Mernik 147ad7e953
Rename filter 2019-11-18 13:39:14 +01:00
Andrej Mernik 36f2b7d744
Allow related title changes
This modification enables the change of the related products title via a filter
2019-11-18 07:58:46 +01:00
Rodrigo Primo 417a7c0259 Bump template version 2019-09-26 14:26:09 -03:00
Rodrigo Primo 93a92abfd3 Rename action from woocommerce_after_tabs to woocommerce_product_after_tabs
Doing this to use a more specific name.
2019-09-26 14:19:39 -03:00
Rodrigo Primo a2d8de35e1 Fix phpcs violations 2019-09-26 14:18:56 -03:00
steveo2001 e65c5a5886
Add action to after tabs
If you have a long product description the space under the tabs is empty and is space that can be used to include banners, images, whatever. Therefore it seems appropriate to have an action to hook into after the tabs. A lot of sites we build we end up having to override the tabs.php file in the theme to achieve this as there is no hook.
2019-09-25 16:06:07 +01:00
Claudio Sanches 9cfde9caf4 Updated template docblocks 2019-08-12 11:06:18 -03:00
Claudio Sanches b63cc12d2b Prevent escape twice 2019-07-09 16:23:53 -03:00
Claudio Sanches 62a32e41d0 Avoid extra escape 2019-07-09 16:23:09 -03:00
Claudio Sanches c1a3c65e34
Merge branch 'master' into update/23390 2019-07-09 16:15:07 -03:00
parmarhardip 5d540037d7 I have change escape 2019-05-10 07:31:11 +05:30
parmarhardip 7b2a331213 remove a phpcs ignore rule. 2019-05-09 17:42:08 +05:30
parmarhardip d56d24f8dd #23649 I have added the filter into the out of stock message in variable.php file 2019-05-08 17:13:25 +05:30
Mike Jolley b37d58c934 phpcs in touched files 2019-04-23 17:04:11 +01:00
Mike Jolley ff61a4ab73 __ -> esc_html__ 2019-04-23 16:15:05 +01:00
Mike Jolley 9d5eb07373 _e -> esc_html_e 2019-04-23 15:53:58 +01:00
Mike Jolley 7def966e4f Impoved JSON handling 2019-02-20 12:00:47 +00:00
Andrew Lazarus 07a8183f2a
Hard coded class now filterable
Ability to add library classes to price instead of overwriting template
2019-02-15 09:49:29 +01:00
Mike Jolley 889cf64ac4 Merge branch 'performance/wc-get-product-class' 2019-02-07 13:34:18 +00:00
Mike Jolley a5d62b83a8 Merge branch 'enhancement/woocommerce_display_product_attributes' 2019-02-04 11:25:13 +00:00
Mike Jolley c0b9491b1e Pass product objects to wc_get_product_class to avoid reloading the product object 2019-01-30 16:02:09 +00:00
Gerhard 574e98060d Bump template versions to 3.6.0 2019-01-22 15:18:15 +02:00
Gerhard 98948a2faf PHPCS fixes 2019-01-17 08:32:42 +02:00
Gerhard f3d9eeeef3 Introduce wc_reviews_enabled, wc_review_ratings_enabled and wc_review_ratings_required as helper functions and update all places where options are accessed directly. 2019-01-17 08:04:57 +02:00
Mike Jolley 2ea7e4fb6a woocommerce_display_product_attributes filter 2019-01-16 12:25:19 +00:00
Mike Jolley 2724fd76cd
Merge pull request #22017 from Bradley-D/feature/wpcs-inline-php
WPCS: inline PHP semicolon and spacing
2019-01-07 12:47:08 +00:00
Bradley Davis e97204a483 Removed @author tag from docbloc in the template files 2018-12-06 12:13:39 -02:00
Bradley Davis 7481af8614 [ UPDATE ] inline PHP semicolon and spacing 2018-11-22 20:37:14 +10:00
Rodrigo Primo 9b094fc74d Use $product->get_image_id() instead of has_post_thumbnail()
This commit replaces all instances where has_post_thumbnail() was used with $product->get_image_id(). This is a continuation of 64b589f032 and is needed to support the custom product tables plugin as has_post_thumbnail() relies on a post meta.
2018-10-18 09:28:20 -03:00
Rodrigo Primo 3c76b4992b phpcs fixes 2018-10-18 09:11:26 -03:00
pierrebuet 4bed2ddeea Correct spaces 2018-09-24 21:45:55 +02:00
pierrebuet db3270a390 Show the right size of placeholder image on single product page
in the template for the product image, wc_placeholder_img_src() returns the thumbnail size of the image.
In order to use 'woocommerce_single' as size, the function needs to be corrected, so the function use the size and not a calculated array of sizes.  wc_get_image_size doesn't return an height for the woocommerce_single size. Further and since the image sizes are declared, there is no need to translate the size to an array.
2018-09-21 19:33:04 +02:00
Gerhard Potgieter 87cfc646f4
Fix PHPCS errors (#21009) 2018-08-08 11:19:36 +02:00
Shabnam 722c21066f changed version to 3.5.0 and adjusted the curly brace 2018-08-08 13:27:54 +06:00