Skip to content

Instantly share code, notes, and snippets.

@markjaquith
Last active December 2, 2020 18:28
Show Gist options
  • Save markjaquith/744faad95d66d5bd6c7fd6fadaad11ba to your computer and use it in GitHub Desktop.
Save markjaquith/744faad95d66d5bd6c7fd6fadaad11ba to your computer and use it in GitHub Desktop.
Plugin that breaks Bedrock autoloader
<?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