-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Required dependencies installation messages #71
Comments
That's strange. Are there any console errors? |
Nothing in console unfortunately. This is the way I am running wpdi (from a custom plugin) : include_once( __DIR__ . '/../vendor/autoload.php' );
$plugins = array( ... );
add_action('plugins_loaded', function() use ($plugins){
$wpdi = WP_Dependency_Installer::instance( __DIR__ );
$wpdi->register( $plugins )->run();
}); |
Can you try testing with a default theme? |
Of course ! Context :WP Version : 6.4.2 File : functions.php add_action('init', function () {
WP_Dependency_Installer::instance( __DIR__ )->run();
}); File : wp-dependencies.json [
{
"name": "Query Monitor",
"host": "wordpress",
"slug": "query-monitor/query-monitor.php",
"uri": "https://wordpress.org/plugins/query-monitor/",
"required": true
},
{
"name": "Git Updater",
"host": "github",
"slug": "git-updater/git-updater.php",
"uri": "afragen/git-updater",
"branch": "master",
"optional": false,
"token": null
},
{
"name": "Yoast SEO",
"host": "wordpress",
"slug": "wordpress-seo/wp-seo.php",
"uri": "https://fr.wordpress.org/plugins/wordpress-seo/",
"required": true
}
] ResultNotices are showing before the doctype. |
I think you've discovered the issue. I load the installation messages in the notice but I don't handle translation updates or their messages. I'm open to PRs if you can figure it out.🙂 |
Ok :) I guess I may have found a workaround. So I had a look of what's happening here : /wp-admin/plugin-install.php On this page, the installation process use Can you please have a look and tell me what do you think about this solution ? |
Hello,
First, thank you for this interesting library !
I was just wondering if I did something wrong because when a plugin is required, the auto-installation process shows update messages in a funny way :
As you can see, update messages are showing before the "Screen options" button.
Is there anything to do about that ?
Thank you !
The text was updated successfully, but these errors were encountered: