• I have a multisite WordPress installation into which I had imported several sites. All is working fine except for the “Edit Page” link in the Admin Bar. It is using the html “& a m p;” instead of “&” in the url (note – I am having to add spaces between the letters because this forum keeps converting the html symbol to “&.” Same below). Following is the sample link.

    https://website.com/wp-admin/post.php?post=2991& action=edit

    Note the issue after “post=2991”

    I have created several multisite installations successfully and have never seen this. I have tried disabling all plugins to no avail and have spent hours scouring google for a similar issue but haven’t found it.

    Any help would be greatly appreciated!

    • This topic was modified 5 years, 2 months ago by justice802.
    • This topic was modified 5 years, 2 months ago by justice802.
    • This topic was modified 5 years, 2 months ago by justice802.
Viewing 1 replies (of 1 total)
  • Thread Starter justice802

    (@justice802)

    SOLVED
    Well, I can’t believe no one else has had this issue. I corrected the problem by commenting out some code in /includes/link-template.php. It is unclear to me why this code even exists, but on line 1439 (in my version of WordPress – search your own), the link is generated using the ASCII for the symbol rather than just the symbol itself. I just commented out this option and it solved the problem – as follows:

    if ( 'revision' === $post->post_type ) {
    		$action = '';
    	//	} elseif ( 'display' === $context ) {
    	//	$action = '&action=edit';
    	} else {
    		$action = '&action=edit';
    	}
Viewing 1 replies (of 1 total)

The topic ‘Broken “Edit Page” link in Admin Bar’ is closed to new replies.