ServerPress / sync-gutenberg-blocks

WPSiteSync for Gutenberg Blocks
3 stars 1 forks source link

Advanced Gutenberg > Recent Posts Block: Warning message when syncing Categories #56

Closed erinmarinas closed 4 years ago

erinmarinas commented 5 years ago

STEPS TO REPRODUCE:

  1. Install WPSS, WPSS for GB and Advanced Gutenberg v2.1.2
  2. Create a post(s) and assign to a custom Category
  3. Create a page and insert a Recent Posts block
  4. Under Block Settings > Category, select the category created in step 2
  5. Save and sync

RESULT:

Warning: Invalid argument supplied for foreach() in C:\Users\Erin\Documents\Websites\gutenberg-blocks-t.dev.cc\wp-content\plugins\advanced-gutenberg\assets\blocks\recent-posts\block.php on line 83 Happens to all custom Categories but sync works when "All" or "Uncategorized" is selected as the post category.

EXPECTED RESULT:

No warning messages. Categories sync.

erinmarinas commented 4 years ago

Fixed with Advanced Gutenberg update 2.2.2