Commit Graph

5417 Commits

Author SHA1 Message Date
Christopher Allford 278cadea67
Merge pull request #26080 from yoavf/fix/helper-toggle-rtl
Addons/Helper: fix toggles in RTL mode
2020-05-11 19:58:45 -07:00
Christopher Allford 71c49e9ef9
Merge pull request #26296 from abhishek-pokhriyal/fix/incorrect-argument-count
Correct argument count for action hooked on `woocommerce_process_shop…
2020-05-11 19:57:53 -07:00
Christopher Allford 7e2e9b8695
Merge pull request #26167 from woocommerce/fix/25889
Removed  legacy notification to connect with WooCommerce
2020-05-11 19:56:46 -07:00
Christopher Allford 888a5c40cd
Merge pull request #26163 from abhishek-pokhriyal/fix/typo-though
Change "though" to "through"
2020-05-11 19:47:36 -07:00
Christopher Allford 452e53d8af
Merge pull request #25630 from woocommerce/fix-25603
Replace {site_address} by {site_url} for consistency
2020-05-11 19:43:08 -07:00
Christopher Allford f76be96af3
Merge pull request #25517 from grey-rsi/duplicated-custom-fields-after-import
Fix duplicated custom fields after import products from .csv file
2020-05-11 19:41:50 -07:00
Vedanshu Jain 31b648d479
Merge pull request #26358 from woocommerce/fix/26348
Clear only plugin cache if WC header are not present to load with WC headers.
2020-05-11 18:14:39 +05:30
Claudio Sanches 8b4e207f59
Merge pull request #26415 from jasonandmonte/patch-1
Fix variable name typo in class-wc-admin-addons.php file
2020-05-08 13:38:43 -03:00
Vedanshu Jain 276ab00d86
Merge pull request #26044 from woocommerce/add/menu-order-count-filter
Added new filter for modification of order processing count in menu
2020-05-08 18:13:55 +05:30
Jason 8ae5b4d5a6
Update class-wc-admin-addons.php
Fix variable name typo. `$parameters`
2020-05-07 16:19:31 -07:00
Claudio Sanches 224559e73f
Updated since tag and removed global variable 2020-05-07 18:57:53 -03:00
Claudio Sanches 7ee559004b Change notice class to error 2020-05-07 16:05:45 -03:00
Claudio Sanches 16ec0007cf Set "Options -Indexes" for redirect download method
Stop the .htaccess to get removed and stop directory listing
2020-05-06 23:42:33 -03:00
Claudio Sanches 16027eb33e Updated the notice 2020-05-06 21:50:01 -03:00
Claudio Sanches 8fecbcf9bf Make safe 2020-05-06 21:49:20 -03:00
Claudio Sanches 191bc7f134 Check if uploads/woocommerce_uploads is protected 2020-05-06 21:41:04 -03:00
Joshua T Flowers 43ab840e1a
Add a put method to the WC_Helper_API (#26262)
* Merge wc api authorization headers with given headers

* Add put method to WC_Helper_API

* Add unit test coverage around WC_Helper_API request methods

* Add tests for WC_Helper_API url method
2020-05-06 19:25:23 +03:00
Claudio Sanches d6a17aad4e Request is internal 2020-05-05 14:05:53 -03:00
Claudio Sanches 1208f79476 Included view 2020-05-05 14:04:42 -03:00
Claudio Sanches d8b8601601 Updated uploads directory check and saved results on transients 2020-05-05 14:03:12 -03:00
Claudio Sanches 040944fda6 Updated notice 2020-05-04 22:20:03 -03:00
Claudio Sanches fdea6de347 Check for user meta data first 2020-05-04 22:12:24 -03:00
Claudio Sanches 54625f9712 Fixed check 2020-05-04 22:11:56 -03:00
Claudio Sanches 15f71015e6 Improved method naming 2020-05-04 22:11:02 -03:00
vedanshujain 62ef169940 Simplified logic for better readability. 2020-05-02 00:31:54 +05:30
vedanshujain e97fd683c6 Add extra comments 2020-05-01 21:19:25 +05:30
vedanshujain 57e2e82961 Clear plugin cache if WC header are not present to load with WC headers.
WC headers are added in filter `extra_plugin_headers`, however, in case when WooCommerce is activated/updated, `get_plugins` will be called and cache will be set before this filter can be cached.

Also, `get_plugins` call is expensive even with update cache present, so we should clear it very conservatively.
2020-05-01 21:14:21 +05:30
xristos3490 cb9dc9ed44 Add param doc comment 2020-04-30 11:34:01 +03:00
xristos3490 09b55f7390 fix CS on docblock 2020-04-30 11:04:40 +03:00
abhishek-pokhriyal 968fbe0228 Correct argument count for action hooked on `woocommerce_process_shop_order_meta` 2020-04-26 16:01:40 +05:30
xristos3490 f43426c46e Fix typo 2020-04-23 01:19:27 +03:00
xristos3490 b6b6bba1a0 minor updates 2020-04-23 01:17:40 +03:00
xristos3490 dfee6ab2e4 Add body class and change styles 2020-04-22 23:32:26 +03:00
Denis Dvali ee9e838918 Reset plugin cache before retrieving plugin list on Subscriptions tab. 2020-04-22 19:55:13 +03:00
Claudio Sanches 67a0a68689 Fixed uploads_directory_is_public trigger 2020-04-17 18:39:15 -03:00
Claudio Sanches 0eae470c0f Added notice to check if uploads directoy is public 2020-04-17 18:21:29 -03:00
Fernando Marichal 134c0ea0db The function '_prompt_helper_connect' was deleted
After removing the legacy code the method '_prompt_helper_connect' wasn't useful anymore so it was removed.
2020-04-15 13:35:56 -03:00
Fernando Marichal f83e5d32a4 Removed legacy notification to connect with WooCommerce
Removed legacy JITM for connecting with WooCommerce.com
2020-04-12 13:49:38 -03:00
abhishek-pokhriyal b049d29a8a Change "though" to "through" 2020-04-11 19:35:13 +05:30
Vedanshu Jain 057b352de7
Merge pull request #26016 from woocommerce/fix/26010
Setup Wizard: Default 100% of users to new OBW.
2020-04-07 02:10:09 +05:30
Vedanshu Jain 5adb16e287
Merge pull request #25904 from woocommerce/fix/25073
Change string for untested WC extensions to avoid confusion
2020-04-06 23:18:42 +05:30
Yoav Farhi af288e6ae1 make sure the woocommerce-helper rtl css file is loaded 2020-04-05 10:59:32 +03:00
Christopher Allford e3c120c1d9
Merge pull request #26034 from woocommerce/fix/package-update-error
Corrected error messaging on update for expired WooCommerce.com subscriptions
2020-04-03 08:35:46 -07:00
Garrett Hyder fadb5d0704 Merge branch 'privacy-policy-update' of github.com:garretthyder/woocommerce into privacy-policy-update 2020-04-02 13:11:24 -07:00
Garrett Hyder a1ea941947 Updated CSS to use branch-5 instead of branch-5-0 after testing. Updated check to include privacy.css to account for core#43895 which reorganized the privacy files. 2020-04-02 13:10:50 -07:00
Claudio Sanches 83609d4844 Improved escaping 2020-04-02 14:25:09 -03:00
Claudio Sanches f02780e764 Update theme update available message 2020-04-02 14:22:50 -03:00
Claudio Sanches 9345eb3624 Improved dependency and update message style 2020-04-02 14:17:38 -03:00
Garrett Hyder 99279211c5
Merge branch 'master' into privacy-policy-update 2020-04-01 16:37:41 -07:00
Garrett Hyder 89336488e9 Introduced privacy.scss with custom back-compat shim for handling the ul elements of WooCommerce privacy policy content and ensuring consistent styling with the default WordPress content. 2020-04-01 16:32:54 -07:00
Claudio Sanches 5356fb1bf6 Removed undefined variable 2020-04-01 19:22:44 -03:00
Claudio Sanches 1f9c8069c9 Introduces woocommerce_menu_order_count filter 2020-03-31 17:43:50 -03:00
Claudio Sanches 8ae9df58ed
Merge pull request #25901 from woocommerce/fix-code-documentation
Fix PHP docblock for WC_Plugin_Updates::get_untested_plugins()
2020-03-31 15:20:54 -03:00
Christopher Allford 4b454a8b3d Replaced the default error text for upgrades of expired WooCommerce.com plugin subscriptions 2020-03-30 14:11:02 -07:00
Miguel Pinto 3def0534fe
fix typo in variable 2020-03-27 19:36:00 +00:00
Timmy Crawford 9edaffa632 Default 100% of users to new OBW. 2020-03-25 13:37:42 -07:00
Peter Fabian 692df536f7
Merge pull request #25884 from woocommerce/fix/25875
Use admin_url instead of using absolute url to support subfolder
2020-03-17 18:20:04 +01:00
vedanshujain cfed958bac Fix typo 2020-03-16 16:55:09 +05:30
vedanshujain 3ef491631f Better messaging to inform that remote files will not be affected 2020-03-16 16:52:35 +05:30
Rodrigo Primo e61e865a4a Change string for untested WC extensions to avoid confusions
This commit changes the string that is displayed to the users in the system status report page when an old version of a WC extension is installed and it doesn't declare support for the current WC core version.

The original message was:

"WooCommerce Min/Max Quantities - by WooCommerce - 2.4.11 - 2.4.12 is available - Not tested with the active version of WooCommerce"

The new message is:

"WooCommerce Min/Max Quantities - by WooCommerce - 2.4.11 - This version is not tested with the active version of WooCommerce (update is available)"

The problem with the original message is that it gives users the impression that even the newest version (2.4.12 in the example above) is not tested with the active version of WooCommerce.
2020-03-12 12:01:35 -03:00
Rodrigo Primo 4dde5ee453 Remove unused variable 2020-03-12 11:24:35 -03:00
Rodrigo Primo d067a2bd12 Fix PHP docblock for WC_Plugin_Updates::get_untested_plugins()
The documentation of the method
WC_Plugin_Updates::get_untested_plugins() said that it only considers
active plugins when getting the list of untested plugins, but it
actually considers all installed plugins. This commit simply updates the
documentation to reflect the method behavior.
2020-03-12 11:01:36 -03:00
Rodrigo Primo b9165c66a8 Refactor code that lists plugins to avoid duplication
This commit creates a new method called
WC_Admin_Status::output_plugins_info() that is used to display the
plugins that are installed on the site in the system status report page.
It is used to display both the active and inactive plugins sections and
it was created to remove code duplication.

I don't think that adding this code as a method to WC_Admin_Status is
an ideal solution but it is the best that I could think and it is better
than duplicating code. Suggestions of other places are welcome.
2020-03-12 10:47:54 -03:00
vedanshujain 7dad11dfc2 Also used add_query_args for better compatibility 2020-03-12 16:30:08 +05:30
vedanshujain 75c3583ff5 Use admin_url instead of using absolute url to support subfolder installs 2020-03-11 21:30:35 +05:30
Rodrigo Primo d65cd6204e
Merge pull request #25823 from michaelignacio/fix/25781
Remove guided tour videos link on setup wizard
2020-03-09 09:34:16 -03:00
Peter Fabian 2eca326825 Improve translatability of version string. 2020-03-09 13:07:32 +01:00
vedanshujain 22392546f6 Add documentation links for settings 2020-03-09 10:47:32 +01:00
Michael Ignacio d2a00bff04 Remove mention of guided tour videos on setup wizard 2020-03-08 19:33:28 +08:00
Rodrigo Primo b3724a38c7 Add RTL style to the setup wizard
Kudos to @kadimi who is the original author of this change (see #24623).
I'm doing this commit as we were not able to merge their PR due to a
conflict and we were also not able to cherry-pick their commit as GitHub
is reporting that the PR was created from a unknown repository.
2020-03-06 11:41:38 -03:00
Rodrigo Primo 5ef13786e4
Merge pull request #25830 from woocommerce/fix/wc-admin-system-status-logic
Update system status info about WC Admin.
2020-03-05 15:31:20 -03:00
Peter Fabian a9e262cb38 Make inactive plugin more visually distinctive. 2020-03-05 19:19:20 +01:00
Peter Fabian 381386bdaf Rename $path to prevent clashing with global variable. 2020-03-05 19:11:56 +01:00
Peter Fabian 0bd518cf52 Update system status info about WC Admin.
The check now also tests whether wc admin is active to prevent notice about undefined constant when running on WP 5.2 and older, or with inactive WC Admin.
2020-03-05 17:50:55 +01:00
Rodrigo Primo 8e006a962f
Merge pull request #25826 from jobthomas/jobthomas-help-tab-review
"Help" tabs review
2020-03-05 13:48:56 -03:00
vedanshujain 9ac9970a77 Also display on selected pages outside of wc-admin 2020-03-05 17:07:10 +05:30
vedanshujain 4b3977868b Display only wc-admin notices when enabled to avoid duplicate notices 2020-03-05 16:53:10 +05:30
Job 1cd3ae0088
Remove the "Education" tab from Help
We still had an education tab there, but we have no active agreements with any of the recommended resources. I think we can just delete thme from core.
2020-03-05 11:39:08 +02:00
Job 1bac3ae62c
Updated the Help & Support tab
The Help & Support tab didn't correspond in terminology to what we're using on WooCommerce.com. Notable changes:

* "Helpdesk" --> "WooCommerce.com Support"
* URL for getting help on WooCommerce.com updated
* More active voice in instructions
2020-03-05 11:35:13 +02:00
Peter Fabian 1edddebbde
Merge pull request #25701 from woocommerce/fix/25700
change the namespace of the WC Admin Package class
2020-02-26 12:10:14 +01:00
Peter Fabian d9c90dc873
Merge pull request #25757 from woocommerce/fix/25756
move edited attribute message to consistent location
2020-02-26 11:28:29 +01:00
Peter Fabian 4271eb94d7
Merge pull request #25736 from woocommerce/try/db-update-notice
Added the WC Admin enabled db update notice.
2020-02-25 20:19:38 +01:00
Ron Rennick 25ab5596a2 fix composer.lock conflict 2020-02-25 15:00:55 -04:00
Ron Rennick 4e43b27aed update status report to correctly show active plugin 2020-02-25 14:51:22 -04:00
Ron Rennick 84c2c7fb00 move edited attribute message to location consistent with other edited messages 2020-02-25 11:28:11 -04:00
Peter Fabian 63486a1cb0 Force the saving of notices for the 'install' notice to prevent performance problems for all notices, while also making it less prone to race conditions during the installation. 2020-02-25 15:00:37 +01:00
Peter Fabian 992c6538dc Force the saving of notices only for the 'update' notice to prevent performance problems. 2020-02-25 14:58:02 +01:00
Peter Fabian f3dceae5df Added more exclusions for the DB notice show_reminder method.
Also, moved `woocommerce_hide_update_notice` outside those exclusions in case
it would get triggered from cron or via AJAX.
2020-02-25 14:51:09 +01:00
vedanshujain f5220383a5 Add defensive checks because `configure` is not present in older jetpack version 2020-02-25 15:03:15 +05:30
Peter Fabian d4933d9a5d Run configure for Jetpack plugin before attempting to try_registration.
This should prevent the fatal error otherwise occuring when connecting with Jetpack
during the OBW if Jetpack is inactive/not installed.
2020-02-24 17:47:07 +01:00
Peter Fabian 7ec65a1b35 Added the WC Admin enabled db update notice. 2020-02-23 21:59:03 +01:00
picocodes 91b01ccaff
fix typo 2020-02-12 17:13:13 +03:00
Remi Corson 89f07da20d Replace {sitde_address} by {site_url} for consistency
Replace {sitde_address} by {site_url} for consistency in WooCommerce emails, for better consistency.
2020-02-11 10:46:32 +01:00
vedanshujain ee0e94e909 Change how filter is implemented to help both 3PD and translators 2020-02-07 17:54:54 +05:30
vedanshujain 707a9bf9a0 Bump versions 2020-02-07 17:54:54 +05:30
vedanshujain cc26fdb2e3 Updated docs link 2020-02-07 17:54:54 +05:30
vedanshujain b29219969c Addressed code review comments 2020-02-07 17:54:54 +05:30
vedanshujain ca5fd12103 Add setting to configure hash appends 2020-02-07 17:54:54 +05:30
vedanshujain 56176e0479 Append unique hash to filename for added security 2020-02-07 17:54:54 +05:30
vedanshujain dc060fe700 Add notice when "redirect only" download method is selected.
This download is insecure as it reveals the original file location. We will try to nudge user to use any of the other download method instead.
2020-02-07 17:54:54 +05:30