-
Notifications
You must be signed in to change notification settings - Fork 80
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
wp plugin update all doesnt display info which plugin is being updated #261
Comments
I agree! |
@kkmuffme / @danielbachhuber, The So, is it still a valid ticket here or any extension is required? |
I think it would still be nice to indicate the plugin in the log output, e.g.:
|
Got it. I inspected the codebase and found that this change need to be made in WP core codebase here https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/class-plugin-upgrader.php#L378-L379 as messages are broadcasted from the core not the cli. |
We should be able to override those strings simply by extending |
Hey there, I've recently been trying to make some small contributions to the WP CLI project and stumbled upon this older issue. I've created a rough work-in-progress and before going further wanted to pose a few questions and get feedback to determine how best to move forward:
I can submit a pull request if it's easier to review. Thanks! Saul |
@baizmandesign Thanks for diving into it!
Oh wow, that's a lot of code. We don't want to fork core that substantially for something relatively inconsequential like this. What made it necessary to override the entire |
Hi @danielbachhuber. The short answer regarding why it was necessary to override the |
@baizmandesign It looks like this We can render whatever output we'd like in our custom If that doesn't work for whatever reason, we could instead render some output on this filter: I think both of these would be better than forking |
Hi @danielbachhuber, I'm sorry I missed WP CLI Hack Day yesterday! But I haven't forgotten about this issue or the other one I messaged you about a few weeks ago. Regarding this issue, it appears the path of least resistance is modifying the
Saul |
I think this could be fine. Can you share all of the data that's in the array?
I don't fully grok the implications of this. Can you explain further? |
Here is the contents of the
My point was simply about organization. Strings seem to be stored all in one place (the |
Hi, @danielbachhuber. Any update on this issue? Did we still want to move forward implementing this idea? Thanks. |
There's a few options here.
I think option 1 is the best. Using the plugin Name is better than the slug since, as mentioned above, the slug is still present in the output in the filename.
|
@BrianHenryIE Thanks for your comment. My original question was related to the proper place to store strings, but it seems you're saying the |
I'm not saying it should, I was just noting that when testing that array was not available, so needs to be guarded against. |
The output for all plugins updated is always this:
Would be much more helpful if it at least said once which plugin it is updating in a separate line first.
The text was updated successfully, but these errors were encountered: