Commit Graph

84 Commits

Author SHA1 Message Date
Gerhard fbe1bc7c1f Move saving setting functionality to wp_loaded hook to avoid issues with menus loading before the setting is saved. 2019-03-20 13:34:02 +02:00
Caleb Burks afaf3482c4 Don’t query for an order count unnecessarily 2019-03-08 16:18:31 -06:00
Galen Wright-Watson 65bb805cbb Fix: #22572-can't access settings ("The link you followed has expired"). Cause: if anything adds to `$_POST`, this triggers WooCommerce to try to save settings; if there's no nonce, authorization fails, resulting in the message. Soln: check for specific element ('save') in `$_POST` to determine whether to save elements, rather than testing that `$_POST` is non-empty. 2019-01-25 18:08:00 -08:00
Alex Sanford 0e1ec203cd Allow custom menu ordering when set by another filter
This fixes the case where another plugin sets custom menu ordering to be
true, but its filter runs before WooCommerce's filter. Otherwise
WooCommerce's filter will return false, and disallow the other plugin to
customize its menu items.
2018-07-19 17:39:41 -03:00
Claudio Sanches 1cf0c78beb Prevents "Your settings have been saved." notices on the table list 2018-07-04 16:04:47 -03:00
Shiva Poudel dcc2e595f2 Tweak - logged in user is also checked by is_admin_bar_showing 2018-06-18 16:52:56 +05:45
Mike Jolley 06ef8c8589 Hook doc update 2018-05-02 14:28:53 +01: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
Mike Jolley de5b60a7e6
Merge pull request #18817 from shivapoudel/feature/screen-option
Add support screen options for core list tables
2018-02-27 19:19:45 +00:00
obiPlabon 5b8721519b Fixed #19125 - added spinner markup 2018-02-25 17:33:29 +06:00
Shiva Poudel e4bcc1d285 Rename the prefix for per page options 2018-02-23 10:03:56 +05:45
Shiva Poudel 5e7b0e2925 Tweaks and PHPCS fixes 2018-02-10 12:23:33 +05:45
Shiva Poudel 0f8f33b645 Renamed per page option 2018-02-06 01:54:12 +05:45
Shiva Poudel 018da951ce Save and use the per page screen option value for API Keys 2018-02-06 01:30:12 +05:45
Shiva Poudel ccc10083fe Save and use the per page screen option value in webhook 2018-02-06 01:22:09 +05:45
Shiva Poudel 750e0e78e4 PHPCS fixes 2018-02-06 01:13:26 +05:45
Shiva Poudel 29ce5bf3c3 Action to load stuffs into memory for use 2018-02-06 01:11:38 +05:45
Claudio Sanches 9fe0c7261e Merge branch 'master' into feature/webhook-crud 2017-11-16 12:20:22 -02:00
Claudio Sanches b58be24b81 Introduced new filters to allow save settings 2017-11-08 17:35:31 -02:00
Claudio Sanches 4970ac6bdf Fixed coding standards in WC_Admin_Menus class 2017-11-08 17:33:04 -02:00
Gerhard Potgieter 7aed2acf4a Update class-wc-admin-menus.php to use button instead of input for submit 2017-11-06 13:14:30 +02:00
Gerhard Potgieter 9090f012f9 PHPCS fixes for class-wc-admin-menus.php 2017-11-06 13:10:34 +02:00
Konstantin Kovshenin b5f1692ff3 Helper: Unify update-count markup into a single helper method. 2017-08-30 17:19:06 +03:00
Konstantin Kovshenin a3b08d6497 Merge remote-tracking branch 'origin/master' into helper-updates 2017-08-28 13:46:14 +03:00
Konstantin Kovshenin 9f3403af06 Helper: Add a plugin-count to the Extensions admin menu. 2017-08-28 09:52:59 +03:00
Kathy Darling fe0c190894 Move settings init/save to load-$settings hook. Closes #16221 2017-07-25 14:43:26 -04:00
Mike Jolley cf35375260 Merge branch 'pr/13712' 2017-04-27 11:39:44 +01:00
Mike Jolley 7e056adbae Revise menu titles to match wp admin 2017-04-27 11:39:34 +01:00
Claudio Sanches bbd54cc15f Merge pull request #13816 from woocommerce/fix-13813-2
Fixed titles and items from WC_Admin_Menus::nav_menu_links()
2017-03-29 14:27:38 -03:00
Claudio Sanches 987fff3775 Fixed titles and items from WC_Admin_Menus::nav_menu_links() 2017-03-28 18:33:06 -03:00
Claudio Sanches 0964847e28 Load custom "WooCommerce endpoint" metabox only in Appearance > Menus.
Closes #13813
2017-03-28 16:06:26 -03:00
Mike Jolley bbf8e750ce Tidy up includes 2017-02-16 11:46:01 +00:00
Hannah Swain c22b1d766a Update class-wc-admin-menus.php
Capitalize "s" in "Visit store" to match case on "Visit Site".
2017-01-19 14:47:29 +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
Jonathan Belcher 45739697e0
Change Add-ons to Extensions within the admin 2016-10-05 14:25:28 -04:00
Claudio Sanches 81ffb798a1 Removed nav menu rename hack 2016-10-04 13:55:50 -03:00
Aristeides Stathopoulos f2730eea02 WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd 2016-08-27 08:57:05 +03: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 330215db42 Check tax object name before modifying label 2016-08-26 21:14:50 +05:45
Caleb Burks a3524c95f3 Filter instead of action 2016-08-24 18:26:14 -05:00
Caleb Burks dc876749cc Rename taxonomies at Appearance > Menus > Pages 2016-08-24 18:22:47 -05:00
Mike Jolley 0667c1cde1 Remove option based tools 2016-08-24 17:35:13 +01:00
Mike Jolley 352184cc06 Merge branch 'master' into shipping-zones
# Conflicts:
#	assets/css/admin.css
#	i18n/languages/woocommerce.pot
#	includes/abstracts/abstract-wc-payment-gateway.php
#	includes/abstracts/abstract-wc-shipping-method.php
#	includes/admin/settings/class-wc-settings-shipping.php
#	includes/wc-core-functions.php
#	uninstall.php
2016-02-05 14:58:48 +00:00
Mike Jolley 3cef28efe8 [2.5] Error handling for screen ids
Fixes #10280
2016-02-05 12:16:44 +00: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 a64fa98b40 Improve docblock comments in WC_Admin_Menus class
* Added comment to `nav_menu_links` since it didn’t have any.
2016-01-05 16:29:16 +01:00
Mike Jolley 97d47fb576 Move zones to main settings 2016-01-05 11:23:15 +00:00
Mike Jolley 62ca37f651 Merge branch 'master' into shipping-zones
# Conflicts:
#	includes/admin/class-wc-admin-assets.php
#	includes/class-wc-install.php
2016-01-04 14:35:45 +00:00
Patrick Garman 0fa0c20520 Add filter to remove admin menu order counts
On large sites this query can easily take 6-10 seconds to complete, slowing the entire dashboard down.
2015-12-10 13:40:41 -06:00
Mike Jolley 56f274b68b non-functional Mockup for the shipping zones interface 2015-12-08 12:45:18 +00:00