Skip to content

v13.40.1

Choose a tag to compare

@github-actions github-actions released this 05 Nov 22:29
· 24 commits to main since this release
9864f38

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)