Matt Sherman
9f00fbfde1
Move admin menu manipulation from admin_head to admin_menu ( #29088 )
2021-02-11 11:48:36 -05:00
Claudio Sanches
864f451775
Merge pull request #26338 from woocommerce/fix/25561
...
Fixed user cap required to view the order count indicator
2020-07-08 12:09:28 -03:00
Claudio Sanches
f5b9af8591
Keep WooCommerce menu structure if user can edit others shop orders
2020-06-25 20:01:12 -03:00
Claudio Sanches
3bb7f30c01
Merge branch 'master' into fix/25561
2020-06-23 11:23:29 -03:00
Claudio Sanches
3a987b3367
Fixed coding standards
2020-04-29 18:23:57 -03:00
Claudio Sanches
986c68c221
Fixed user cap required to view the order count indicator
2020-04-29 18:19:25 -03:00
Claudio Sanches
1f9c8069c9
Introduces woocommerce_menu_order_count filter
2020-03-31 17:43:50 -03:00
Rodrigo Primo
f06ad5d78a
Replace removed WordPress.Security.NonceVerification.NoNonceVerification
...
WordPress Coding Standard 2.0 removed the sniff
WordPress.Security.NonceVerification.NoNonceVerification:
```
The WordPress.Security.NonceVerification sniff used the same error code for both an error as well as a warning.
The old error code NoNonceVerification is no longer used.
The error now uses the Missing error code, while the warning now uses the Recommended error code.
```
(from
d45f5e5cf3/CHANGELOG.md (200-rc1---2018-12-31)
)
This commit updates WooCommerce code and replaces all instances where WordPress.Security.NonceVerification.NoNonceVerification verification was used with either WordPress.Security.NonceVerification.Missing or
WordPress.Security.NonceVerification.Recommended. In a few cases WordPress.Security.NonceVerification.NoNonceVerification was used but was not needed, so instead of replacing the sniff, the line was removed. In two other cases, I removed other unrelated sniffs that were not needed.
2019-12-13 17:45:32 -03:00
Mohit Verma
c97ca103c1
Update class-wc-admin-menus.php
...
Fixed escaping in attribute.
2019-08-22 16:21:23 +05:30
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