[wp-trac] [WordPress Trac] #37943: Invalid link to the "Run importer" action while installing importer plugin from a multisite sub-site
WordPress Trac
noreply at wordpress.org
Sun Sep 4 22:04:29 UTC 2016
#37943: Invalid link to the "Run importer" action while installing importer plugin
from a multisite sub-site
-------------------------------------------------+-------------------------
Reporter: joelcj91 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Import | Review
Severity: normal | Version: 4.6
Focuses: javascript, administration, | Keywords:
multisite |
-------------------------------------------------+-------------------------
In a WordPress multisite installation, when you try to import an XML file,
from a sub-site, you will be provided with an invalid link to the "'''Run
importer'''" page after the installation of the "WordPress Importer"
plugin. This bug will not be there if it is not a multisite website or if
the "WordPress Importer" plugin is already installed.
Steps to reproduce:
1) Create a Multisite website.
2) Go to one of your sub-sites.
3) Make sure that the "WordPress Importer" plugin is '''not installed'''
already (https://wordpress.org/plugins/wordpress-importer/).
4) Go to Import section in Tools menu.
5) Click on "Install Now" under WordPress import section.
6) Now the WordPress Importer plugin will be installed though ajax
request.
7) After successful installation, "Install Now" link will be replaced with
"Run importer" link and also, you will be provided with a message at the
top - "Importer installed successfully. Run importer".
8) Expected result is a proper, working link to the importer page., inside
the current sub-site. But you can see, since the Multisite plugins are
managed from network dashboard, the link returned through the ajax
response is invalid, as "/network" is appended in the plugin's link.
9)
a) Expected link : mysubsite1/wp-
admin/plugins.php?action=activate&plugin=wordpress-importer%2Fwordpress-
importer.php&from=import&_wpnonce=123nonce
b) Current link : mysubsite1/wp-
admin/'''network'''/plugins.php?action=activate&plugin=wordpress-importer
%2Fwordpress-importer.php&from=import&_wpnonce=123nonce
10) This results a 404 error when we click on '''Run mporter'''.
Please see the screenshot.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37943>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list