Undefined index path
for installations in root directory
#772
Labels
priority: low
The issue/PR is low priority—not many people are affected or there’s a workaround, etc.
type: bug
The issue is a confirmed bug.
Describe the bug:
The method
API\Base::trigger_verification()
has support for verifying site ownership for WordPress/WooCommerce installs in sub-directories (e.g.,/store/
), but shows a PHP notice for installs in the root directory:PHP Notice: Undefined index: path in /…/plugins/pinterest-for-woocommerce/src/API/Base.php on line 380
This is because
wp_parse_url()
doesn't add anypath
index in this situation, which leads to an undefined index notice.Steps to reproduce:
https://025c-88-3-151-32.ngrok-free.app
)Expected behavior:
No notice.
Actual behavior:
PHP Notice
Additional details:
PHP 7.4, WP 6.2, WC 7.8, Pinterest 1.3.2
The text was updated successfully, but these errors were encountered: