diff --git a/composer.json b/composer.json index 28ff435..119400b 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "humanmade/clean-html": "^2.0.0", "humanmade/altis-reusable-blocks": "~0.2.4", "humanmade/asset-loader": "^0.6.4", - "10up/simple-local-avatars": "~2.7.11" + "10up/simple-local-avatars": "~2.8.5" }, "autoload": { "files": [ @@ -39,6 +39,7 @@ "altis": { "install-overrides": [ "10up/simple-local-avatars", + "10up/wp-compat-validation-tool", "stuttter/wp-user-signups", "humanmade/altis-reusable-blocks", "humanmade/asset-loader" diff --git a/inc/namespace.php b/inc/namespace.php index d61877e..a5803bd 100644 --- a/inc/namespace.php +++ b/inc/namespace.php @@ -324,9 +324,11 @@ function load_plugins() { $config = Altis\get_config()['modules']['cms']; if ( $config['local-avatars'] ) { + // Setup the wp-compat-validation-tool for simple-local-avatars. + setup_simple_local_avatars_compat_tool(); require_once Altis\ROOT_DIR . '/vendor/10up/simple-local-avatars/simple-local-avatars.php'; - // Hide the User Profile Picture field if local avatars is active. Replaced by the Avatar field on the same page. + // Hide the core User Profile Picture field if local avatars is active. Replaced by the Avatar field on the same page. add_action( 'admin_head', function() { echo '