Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Ensure that snapshot data is always an array #43

Merged
merged 1 commit into from
Jun 10, 2016

Conversation

westonruter
Copy link
Contributor

Should fix these issues when data is corrupted:

  • Warning: Invalid argument supplied for foreach() in .../customize-snapshots/php/class-customize-snapshot-manager.php on line 753
  • Warning: Invalid argument supplied for foreach() in .../customize-snapshots/php/class-customize-snapshot.php on line 337
  • Warning: Invalid argument supplied for foreach() in /var/www/html/wordpress/docroot/wp-includes/functions.php on line 3459
  • Warning: array_filter() expects parameter 1 to be array, null given in .../customize-snapshots/php/class-customize-snapshot.php on line 314
  • Warning: array_keys() expects parameter 1 to be array, null given in .../customize-snapshots/php/class-customize-snapshot.php on line 337

@westonruter westonruter merged commit 44b74dd into release/0.4.0 Jun 10, 2016
@westonruter westonruter deleted the bugfix/handle-null-data branch June 10, 2016 19:14
@westonruter westonruter modified the milestone: 0.4.0 Jun 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant