Last active
December 2, 2020 18:28
-
-
Save markjaquith/744faad95d66d5bd6c7fd6fadaad11ba to your computer and use it in GitHub Desktop.
Plugin that breaks Bedrock autoloader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Bedrock Autoloader pluggable function bug example | |
Description: https://github.com/roots/bedrock-autoloader/issues/24 | |
Make sure that you place this file in a subdirectory of mu-plugins, not in mu-plugins itself. | |
*/ | |
namespace MarkJaquith\BedrockAutoloaderPluggableBug; | |
function activate() { | |
\wp_generate_password(); // Defined in pluggable.php by WordPress. | |
} | |
register_activation_hook(__FILE__, __NAMESPACE__ . '\activate'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment