refael iliaguyev
d8cd0a7550
prevent flipping of color input in rtl
2017-03-22 22:12:07 +02:00
Mike Jolley
bbf8e750ce
Tidy up includes
2017-02-16 11:46:01 +00:00
Mike Jolley
748db4e675
Defer flush so CPT is updated before flush.
...
Fixes #12787
2017-01-11 16:12:00 +00:00
Mike Jolley
d7dfdd3d10
Wrap all deprecation calls.
2016-11-23 16:15:00 +00:00
Rami Yushuvaev
d85075dcb0
a11y: replace `title` attributes with `aria-label`, for better accessibility
2016-11-04 17:41:51 +02:00
Daniel Hüsken
ab7f9dd674
Flush rewrite rules with cron for attribute terms ( #12132 )
2016-10-21 15:29:50 +01: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
Rami Yushuvaev
83e938af1e
i18n: Merge similar translation strings to reduce the total strings count #11905
2016-10-11 04:39:13 +03:00
Aristeides Stathopoulos
734f284fa4
WordPress.PHP.YodaConditions.NotYoda
2016-09-08 01:32:24 +03:00
Aristeides Stathopoulos
6ac7f03241
Generic.Formatting.DisallowMultipleStatements.SameLine
2016-09-02 06:40:52 +03:00
Aristeides Stathopoulos
d4e3faf014
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos
0516e96843
PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos
fde1037757
fix failing tests.
2016-09-01 23:50:14 +03:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos
6c30f84fa2
WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys
2016-08-27 06:23:21 +03: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
a5ba8a05ed
Fixed checkboxes in the admin settings
...
This allow set yes/no or null/1 for checkboxes
cc @mikejolley @jeffstieler
2016-07-27 17:52:11 -03:00
Mike Jolley
66c61eebc8
Define full path for includes
...
Closes #11087
2016-07-27 11:58:43 +01:00
Jeff Stieler
e14d77a987
When saving settings, only allow values found in “options” for “select” type fields.
2016-07-26 10:24:15 -07:00
Jeff Stieler
3de28d2356
Take in options data to be saved as an optional argument, defaulting to $_POST.
...
This allows for reuse of the options field saving mechanism.
2016-07-26 10:24:15 -07:00
Shiva Poudel
23ad5580ae
Added Periods in the end of comments
2016-03-04 15:26:31 +05:45
Shiva Poudel
51cc7376dd
Docblock fix for get_field_description method
2016-03-04 15:15:03 +05:45
Shiva Poudel
3ae7e4e418
Tweak indentation tabs and correct use of br
...
Sublime linter showing notification due to </br>, instead we should use <br />
2016-03-04 15:08:45 +05:45
Mike Jolley
fc3474f255
Stop message moving
...
Fixes #10400
2016-02-22 13:32:31 +00:00
Justin Shreve
608f651133
Fix hierarchy on settings screens.
2016-02-18 08:39:02 -08:00
Mike Jolley
1076854608
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# includes/abstracts/abstract-wc-shipping-method.php
# includes/class-wc-shipping.php
# includes/shipping/flat-rate/class-wc-shipping-flat-rate.php
# includes/shipping/flat-rate/includes/class-wc-eval-math.php
# includes/shipping/free-shipping/class-wc-shipping-free-shipping.php
#
includes/shipping/legacy-international-delivery/class-wc-shipping-legacy
-international-delivery.php
#
includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-d
elivery.php
2016-01-11 11:48:18 +00:00
Fredrik Forsmo
005be911b5
Improve docblock comments in WC_Admin_Settings class
...
* Added comments to properties that don’t have any.
2016-01-05 16:37:28 +01:00
Mike Jolley
97d47fb576
Move zones to main settings
2016-01-05 11:23:15 +00:00
Claudio Sanches
84ac454c3e
Fixed settings messages location in WP 4.4, closes #9575
2015-11-11 12:18:31 -02:00
Shiva Poudel
d9e8057df3
Tweak the dockblocks and periodic-ending fix
2015-11-04 00:05:08 +05:45
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
Claudio Sanches
b85ae9056c
Rename wc_add_help_tip() function to wc_help_tip()
2015-10-23 13:09:08 -02:00
Claudio Sanches
2e95a68357
Use new "question" mark icon font
...
Created wc_add_help_tip() function to generate the icons
Replaced all .help_tip elements and [?]
We'll keep the old image and styles in order to maintain backwards
compatibility
Closes #9381
2015-10-23 01:40:52 -02:00
Mike Jolley
3c7290a765
During updates, only recreate .htaccess if not using redirect download method.
...
Fixes #8923
2015-08-24 13:50:14 +01:00
Lucas Stark
00be9b1324
Update class-wc-admin-settings.php
...
Reset the $value to array when processing image_width. Strange bug if the value is a string and the array is not explicitly created.
2015-08-19 13:39:38 -04:00
George Stephanis
c938fa24da
More missing esc_attr calls, :(
2015-08-05 15:17:52 -04: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
763c7dde35
Fix product image size saving
...
Fixes #8695
2015-07-31 11:29:04 +01:00
Mike Jolley
9b21c1c7a1
Add deprecation notices for woocommerce_update_option_X and keep this action working.
...
Before this change, options would be overwritten by the new filters.
2015-07-14 10:10:07 +01:00
Vignesh
8a4e7e34ca
Update class-wc-admin-settings.php
2015-07-08 20:42:04 +05:30
Vignesh
4eef4bf846
Class attribute added for Checkbox in settings
...
Noticed class attribute missed in checkbox of admin settings function, this class name will help for developer also, can you please consider this as my proposal?
2015-07-08 20:24:36 +05:30
Mike Jolley
439ce9eed2
Merge branch 'save-fields-refactor-8495'
...
Closes #8495
2015-07-06 15:31:43 +01:00
Justin Shreve
5f627cf850
Move the color preview to its own separate "preview box" rather then changing the color of the input div box.
2015-06-11 07:15:51 +00:00
Claudio Sanches
e106d57947
Merged #8021
2015-05-18 16:53:04 -03:00
Claudio Sanches
0edbfeaa35
Created new Settings API tab and moved the old webhooks tab to API tab
2015-05-15 16:12:11 -03:00
Mike Jolley
7254e45edc
Remove notice fade class Closes #8096
2015-05-05 13:28:08 +01:00
Nicola Mustone
d2d2bf60b0
revert typecasting format
2015-04-01 17:28:51 +02:00
Nicola Mustone
85fd634861
fix scrutinizer issues
2015-04-01 15:33:56 +02:00
Mike Jolley
ec6fe19db1
Allow name definition in woocommerce_wp_select
2015-03-17 14:44:02 +00:00
Mike Jolley
5b7d03271e
Pass reference to extract
2015-01-15 16:32:13 +00:00
Claudio Sanches
b55ecea6ba
Used wp_unslash() instead of stripslashes_deep()
...
The WordPress documentation recommends:
"This should be used to remove slashes from data passed to core API that expects data to be unslashed. Use this instead of stripslashes_deep()."
2015-01-13 17:54:10 -02:00
Claudio Sanches
695b04be61
Fixed conflits
2015-01-12 16:02:46 -02:00
Mike Jolley
f18b2c6c93
Added and enqueued select2 to admin
2015-01-09 16:39:10 +00:00
Claudio Sanches
3c038e613f
Created initial webhooks table list in settings page
2015-01-06 17:24:32 -02:00
Tamara Zuk
af442599b1
Code Standards: Finish up admin includes
...
* fixed indentation - swapped spaces for tabs at start of line, swapped
tabs for spaces min-line for alignment
* removed instances of `@return void` and `@access public`
@see http://make.wordpress.org/core/handbook/coding-standards/php/
@see part 1: #6157
2014-11-30 01:52:32 -05:00
claudiosmweb
74ba11c189
Removed some unused code
2014-11-19 21:36:47 -02:00
Bryce
295fed6467
Add placeholder attribute for settings API #6764
2014-11-16 14:49:43 +07:00
Bryce
d717eed3ad
Add script_debug $suffix for admin settings.js
2014-11-13 15:57:09 +07:00
Mike Jolley
20279831e7
Tweak to naming in #6375
2014-10-17 16:24:21 +01:00
Dominic
a96c8fa836
Moved description and tip generation to function
...
This would allow plugins to easily generate the necessary HTML for the
tooltips and field descriptions when implementing their own custom
setting field types.
2014-09-23 15:27:15 -07:00
claudiosmweb
a84021306e
fixed some coding standards in includes/admin/class-wc-admin-settings.php
2014-09-11 21:40:30 -03:00
claudiosmweb
ec9e08ba7d
Fixed images crop option and wc_get_image_size() function
...
Reported in http://wordpress.org/support/topic/hard-crop
@mikejolley
2014-09-11 21:22:30 -03:00
Mike Jolley
c4ef86d44e
scrutinizer patches
2014-09-08 00:37:55 +01:00
Mike Jolley
5dcd19f5fa
Better handling of serialised settings Closes #4584
2014-06-25 16:30:47 +01:00
Mike Jolley
3df6a71b96
Removed some transient clears where unnecessary
2014-06-19 12:25:10 +01:00
claudiosmweb
61c94f9e25
fixed some hard code strings
2014-06-11 17:12:23 -03:00
Coen Jacobs
3ad8935b20
Removed ununsed global variables in local scopes
2014-06-08 22:33:11 +02:00
Coen Jacobs
cc7adb4819
Disable image size settings if filters are being used
2014-05-21 16:28:36 +02:00
Mike Jolley
94693ea81d
Admin screen strings need to be sanitised to work with chinese chars Closes #4788
2014-02-14 10:57:48 +00:00
Mike Jolley
b0755f695f
Sections can be lowered using sanitize_title Closes #4700
...
@coenjacobs pick me
2014-02-11 10:30:37 +00:00
toddlahman
2725527d4a
Removed urldecode from $_GET and $_REQUEST
...
The superglobals $_GET and $_REQUEST are already decoded. Using
urldecode() on an element in $_GET or $_REQUEST could have unexpected
and dangerous results.
See Notes:
http://us1.php.net/manual/en/function.urldecode.php
2014-01-26 01:19:17 -08:00
Mike Jolley
3958a40b06
No span for checkbox descriptions
2014-01-22 15:27:42 +00:00
Mike Jolley
986f612bf7
tidy up checkbox output
2014-01-22 15:22:58 +00:00
Kathy Darling
f93abb7acb
fix for #4547
2014-01-22 13:54:25 +01:00
Mike Jolley
ddb755afd5
braces
2014-01-08 14:12:19 +00:00
Mike Jolley
7cafdb4bf8
Prevent settings loading twice
2014-01-03 14:13:18 +00:00
Gregory K
cdbe5950f0
PhpDocs and TODO comments
2013-11-28 11:49:30 -05:00
Coen Jacobs
dbb9b6fc68
Removed duplicate country_dropdown_options() echo. Closes #4228
2013-11-28 13:24:23 +01:00
Coen Jacobs
c1a439eb99
Formatting functions woocommerce to wc refactor
2013-11-25 14:34:21 +01:00
Coen Jacobs
aa4d9d5914
Better order for admin settings tabs
2013-11-25 12:06:42 +01:00
Scott Basgaard
922fa990a5
esc_attr() all the things.
2013-11-20 20:11:59 +01:00
Max Rice
dcdca4d4d2
Remove API settings tab
...
Part of #4055
2013-11-19 03:01:14 -05:00
Max Rice
4daaf22304
Add REST API settings stub
2013-11-03 18:55:34 -05:00
Mike Jolley
e3680ef670
Strict standards closes #3842
2013-09-26 16:39:10 +01:00
Mike Jolley
9472646609
Customisable query vars. #3708
2013-09-03 16:14:56 +01:00
Mike Jolley
3d078397b3
Merge branch 'Re-organise-settings'
...
Moves settings together. Fixes #3497
2013-08-22 11:58:03 +01:00
Mike Jolley
57157db9bf
Function refactoring.
2013-08-09 17:11:21 +01:00
Mike Jolley
d77bac9330
Removed hooks and functions from admin.
2013-08-06 16:56:15 +01:00
Mike Jolley
03af136986
Separate ship to options from sell to. Closes #3215 .
2013-08-02 16:54:28 +01:00
Mike Jolley
9462dde581
Settings refactoring
2013-07-26 15:36:28 +01:00