woocommerce / pinterest-for-woocommerce

A native Pinterest integration for WooCommerce. Development is managed by Ventures.
https://woo.com/products/pinterest-for-woocommerce/
GNU General Public License v3.0
22 stars 9 forks source link

Fix - Undefined array key "path" warning thrown by DomainVerification.php #1023

Closed rawdreeg closed 3 weeks ago

rawdreeg commented 3 weeks ago

Changes proposed in this Pull Request:

Related to #903.

Closes #1022.

I encountered the following while testing for WC 9.0 compat. PHP Warning: Undefined array key "path" in /srv/htdocs/wp-content/plugins/pinterest-for-woocommerce/src/API/DomainVerification.php on line 66. This PR fixes this.

Detailed test instructions:

  1. Install on a store with PHP 8.3.
  2. Enable WP_DEBUG, WP_DEBUG_LOGGING.
  3. Go through smoke testing steps: Wiki: Smoke Tests ()
  4. Check the logs for warnings or notices.
  5. (See issues for exact notices that could be present)

Changelog entry

Fix - Undefined array key "path" warning thrown by DomainVerification.php