Commit Graph

72 Commits

Author SHA1 Message Date
Claudio Sanches 00bc21135c Fixed admin attributes page inline docs 2018-04-18 15:32:46 -03:00
Rodrigo Primo 23b69eba53 Use phpcbf to fix coding standard violations in includes/admin
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Caleb Burks 221b4672d9 Use wc_has_custom_attribute_types() 2018-02-09 17:31:56 -05:00
Caleb Burks 7eae986643 Remove “Type” column on attributes table 2018-02-08 21:36:27 -05:00
Mike Jolley a65db31443 Update text.
Closes #18078
2017-12-11 13:19:19 +00:00
Mike Jolley 1944bf7191 Remove text type setting 2017-12-08 11:24:21 +00:00
Mike Jolley 28fdc73c18 Fix fatal due to _esc_html_e call 2017-11-08 12:34:04 +00:00
Gerhard Potgieter fb66c2066e PHPCS fixes for class-wc-admin-attributes.php 2017-11-06 12:58:57 +02:00
Gerhard Potgieter 2bcf8679be Update class-wc-admin-attributes.php to use button instead of input for submit 2017-11-06 12:45:14 +02: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
Anwer AR c4fcddca73 Back to attributes link on attributes edit page (#15088)
* see #15059 The issue was about editing product attributes. Added back to attributes link.

* Updates admin_url to esc_url

* Added admin_url again wrapping inside esc_url

The function works without admin_url in my previous commit. but i have added admin_url again to make sure it points to correct location.

* Correctted typo of esc function and removed icon

correction of spell mistake and removal of &larr due to translation and RTL concerns. though WP and WC itself using &larr on some places.
2017-05-25 11:15:57 +01:00
Claudio Sanches 84e428abd3 Use correct attribute type label in attributes admin screen
This allow use a translatable label for attribute type instead of
forcing English for everybody.
2017-03-29 17:50:09 -03:00
Mike Jolley d080e135ee Reduce `select *` usage 2017-02-13 12:58:42 +00:00
Mike Jolley 76f8c3dddd Escaping for scruitinizer 2017-01-06 12:45:28 +00:00
Mike Jolley 2e77e38d33 colour -> color
#12627
2016-12-19 11:41:48 +00:00
Mike Jolley cf0943fda9 Fix term sorting
Closes #12602
2016-12-15 14:09:01 +00:00
Mike Jolley c3b4f87d4a Fix text
Closes #12294
2016-11-10 16:18:05 +00:00
Rami Yushuvaev 6cc301e58c add translators comments 2016-10-29 13:16:03 +03:00
Daniel Hüsken ab7f9dd674 Flush rewrite rules with cron for attribute terms (#12132) 2016-10-21 15:29:50 +01:00
Rami Yushuvaev fec057c993 Use get_admin_page_title() function to display admin titles (#12077)
*  Use get_admin_page_title() function to display admin titles

* revert

* i18n: use sprintf() in translation strings
2016-10-13 13:34:48 -03:00
Rami Yushuvaev b8f2f29d5a Remove deprecated admin screen icons (#12074) 2016-10-12 10:57:24 -03:00
Claudio Sanches 657c312cae Fix strings case (#12069)
* Fixed case for all _e, esc_attr_e and esc_html_e strings

* Fixed case for all _n_noop strings

* Fixed case for all _x strings

* Fixed case for all __, esc_html__ and esc_attr__ strings

* Fixed a few more strings

* Fixed strings in unit tests

* Fix PayPal Standard case.

* Save Order text
2016-10-12 11:16:30 +01:00
Aristeides Stathopoulos b063bcfe4c last item in a multiline-array should end in a comma 2016-08-27 04:46:45 +03:00
Claudio Sanches 2799bbdb27 Changed "Configure terms" into a link 2016-08-18 00:02:18 -03:00
Mike Jolley 45d6b88ac6 woocommerce_after_/before prefixes 2016-08-01 10:27:15 +01:00
Moritz Meißelbach 97b0161c4c Add hooks to edit form 2016-08-01 09:13:21 +02:00
Moritz Meißelbach 68abee516e Rename hooks as suggested 2016-08-01 09:04:11 +02:00
Moritz Meißelbach 6591ff1866 Provide 2 hooks for adding fields to the attribute creation form 2016-07-29 16:31:16 +02:00
Mike Jolley a0b792625d Adjust action args 2016-05-11 10:55:33 +01:00
Steve 2da25a7708 Update class-wc-admin-attributes.php 2016-05-10 13:13:30 +12:00
Steve ff03ca81ac Add 'woocommerce_before_attribute_delete' action
Adding an action so 3rd party plugin developers can prevent attributes essential for plugin functionality from being deleted while their plugin is active.
2016-05-10 13:11:53 +12:00
Mike Jolley 9a3aa8e498 Further woocommerce_termmeta removal 2016-04-22 17:43:07 +01:00
Justin Shreve e8eabfd309 Fix hierarchy for products and attributes 2016-02-18 08:40:01 -08:00
Mike Jolley fd5dd4cfb7 h2 > h1 2015-11-27 12:27:27 +00:00
Claudio Sanches 5893875b0c Removed period for file headers 2015-11-03 11:53:50 -02:00
Claudio Sanches efa19f799d Fixed some coding standards for docblocks 2015-11-03 10:28:01 -02:00
George Stephanis 95e6b84fbb Make sure we esc_attr translation results
Part 2 of … 2, I think.
2015-08-05 14:15:00 -04:00
Mike Jolley ec5a693ad7 Use prepare for updating attributes
Closes #7
2015-06-01 13:29:02 +01:00
Claudio Sanches 6ff7215f3c Improved the error display for #7959 2015-05-27 13:19:44 -03:00
Claudio Sanches cc9721ed9d Merge pull request #7959 from tivnet/patch-4
Check for non-existing attribute ID
2015-05-27 12:24:40 -03:00
Mike Jolley 7254e45edc Remove notice fade class Closes #8096 2015-05-05 13:28:08 +01:00
Claudio Sanches fcf03a4ac1 Merge pull request #8053 from woothemes/api-product-attributes
[API] Product attributes endpoints, closes #8031
2015-04-27 16:35:09 -03:00
Claudio Sanches 2e56790122 [2.3] Fixed the sort order dropdown items when create new product attributes 2015-04-27 13:08:53 -03:00
Claudio Sanches 1b176c73e3 Created wc_check_if_attribute_name_is_reserved() function 2015-04-27 13:06:28 -03:00
Claudio Sanches 611ffff0a5 Created wc_get_attribute_types() and deprecated the woocommerce_admin_attribute_types action 2015-04-27 12:31:34 -03:00
Ibrahim 7b513ec35c Error message not formatted
The error message that is displayed when adding a reserved term for attribute is not formatted. Hence the user sees %s in his error message.
2015-04-26 11:24:25 +05:30
Gregory Karpinsky 91246f86b1 Check for non-existing attribute ID
If get_row returns `null`, should not continue. Avoid "not an object" errors on the following lines, and potential data corruption after submitting form with non-existing ID.
2015-04-14 23:59:53 -04:00
Mike Jolley f0d0fa9394 Auto-generation of slug when adding new attribute. 2015-02-12 23:25:10 +00:00
Claudio Sanches 177bcbe7d5 Removed unused code 2015-01-23 16:34:43 -02:00