Skip to content

Conversation

@aatanasov-cloudinary
Copy link
Collaborator

Fixes:

PHP Warning:  Undefined array key "innerBlocks" in /wp-content/plugins/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-video.php on line 245
PHP Warning:  foreach() argument must be of type array|object, null given in /wp-content/plugins/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/media/class-video.php on line 245

Approach

  • Ensure only blocks with innerBlocks are looped.

QA notes

  • Insert a Video inside a block that supports innerBlocks (e.g. columns).
  • Go to the Editor and the front-end page.
  • The PHP Warnings shouldn't appear in the debug.log.

@aatanasov-cloudinary aatanasov-cloudinary changed the base branch from master to develop July 1, 2025 14:44
Copy link
Collaborator

@gabrielcld2 gabrielcld2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed the issue is fixed ✅

@aatanasov-cloudinary aatanasov-cloudinary merged commit 931893b into develop Jul 8, 2025
4 checks passed
This was referenced Aug 6, 2025
@aatanasov-cloudinary aatanasov-cloudinary deleted the fix/innerBlocks-warning branch September 17, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants