studiopress / atomic-blocks

Atomic Blocks has been renamed to Genesis Blocks. This plugin is no longer maintained! Visit Atomic Blocks → Migrate to migrate to the new plugin.
https://wordpress.org/plugins/genesis-blocks/
GNU General Public License v3.0
157 stars 58 forks source link

Tweak plugin loader code to avoid possible PHP fatal errors under certain conditions. #331

Closed mindctrl closed 4 years ago

mindctrl commented 4 years ago

Closes #330.

To test this, do the following:

These steps mimic what Genesis would do if this fix were already deployed to wp.org. When Genesis instructs WP to activate the code in this branch, you should not see any fatal errors and the OCTS process should complete like normal.

See the comment in the main atomicblocks.php file for more info. Nearly all the logic that lived in the main plugin file now lives in loader.php and was not changed.