Opened 4 years ago
Closed 4 years ago
#52669 closed enhancement (fixed)
Amend plugin link for Link Manager error.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.8 | Priority: | normal |
Severity: | trivial | Version: | |
Component: | General | Keywords: | has-patch |
Focuses: | Cc: |
Description
Right now, if a user tries to visit the legacy link management pages, they are instructed to install the "Link Manager" plugin which re-enables the pages.
However, the link provided to install the plugin just points to a search by keyword for "Link Manager", which at present time returns 2,153 results to sift through to hopefully find the intended https://wordpress.org/plugins/link-manager/
Let's help the user out by providing direct links to install the plugin, if able to, and then if they re-visit the same page without having activated yet, provide a link to activate it too.
Attached is a patch that checks the current status of "Link Manager" plugin, and amends the messaging link URLs to either install or activate the plugin.
Attachments (3)
Change History (12)
#3
@
4 years ago
Will fix up the array syntax soon.
I will also look things over and see how to only do some parts if the plugin is installed already.
#4
@
4 years ago
Removed the latest version check because in brief hindsight, it was needless. We just need to activate once we get to that point.
Short array syntax removed.
#5
@
4 years ago
Thanks for the patch!
Just noting that we'd probably want for the approach here to be consistent with the checks for Classic Editor plugin in do_block_editor_incompatible_meta_box()
.
#6
@
4 years ago
Thanks @SergeyBiryukov
I will check that section out and further amend to fit. Stay tuned.
Thanks for the patch, a couple of minor notes:
plugins_api()
, Core uses the long array syntaxThis is so much nicer than the current search link. Thanks boss.