You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
pollora:plugin:activate: activates WordPress plugins, given as paths relative to the plugins directory (woocommerce/woocommerce.php), and refuses to run when WordPress is not fully loaded
Fixed
pollora new no longer crashes when a theme template requires a WordPress plugin and you activate it (arsort(): Argument #1 ($array) must be of type array, null given). The E-commerce template (pollora/theme-apiary) always hit it: it requires WooCommerce. On a first install pollora:make:theme runs in the process that has just installed WordPress, which is only partly loaded (SHORTINIT), and activate_plugin() failed there before the theme build and the theme activation. The plugins are now activated by a fresh pollora:plugin:activate process, where WordPress loads completely and the activation hooks run. If that process fails, the install carries on and prints the wp plugin activate <slug> to run afterwards (Pollora/pollora#274)