[wp-trac] [WordPress Trac] #60992: Plugin management: AJAX plugin activation consequences
WordPress Trac
noreply at wordpress.org
Tue Apr 16 11:29:54 UTC 2024
#60992: Plugin management: AJAX plugin activation consequences
--------------------------+------------------------------
Reporter: jeherve | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 6.5
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by justlevine):
Replying to [comment:12 jeherve]:
> Replying to [comment:10 justlevine]:
>
> > A step up from this would be allowing users to provide an
`activation_success_message` that could be displayed on the screen. This
would also fill the gap caused by the lack of new links in the Admin
Menu/Bar
>
> I'm afraid the current implementation will not allow us to do that,
since even if plugin authors were to hook into a potential new filter,
that code would not run until a page refresh.
>
Sorry I should have been more explicit. The recommendation here is to send
the activation success message in the ajax response. It's a half measure
that's not as drastic as a full-blown Admin Notices API.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60992#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list