Ticket #5753 (closed defect (bug): fixed)

Opened 1 year ago

Last modified 11 months ago

Upgrade Complete Continue > "You attempted to edit a post that doesn't exist. Perhaps it was deleted?"

Reported by: lloydbudd Assigned to: anonymous
Priority: lowest Milestone: 2.5
Component: Administration Version:
Severity: trivial Keywords: has-patch
Cc:

Description

Upgrade Complete Continue > "You attempted to edit a post that doesn't exist. Perhaps it was deleted?"

ENV: WP trunk r6705 (2.4-bleeding)

Editing a post, and then Upgrade WordPress: link is http://localhost/wp/trunk/wp-admin/upgrade.php?step=1&backto=/wp/trunk/wp-admin/post.php?action=edit&post=44

upgrade.php:

	if ( empty( $_GET['backto'] ) )
		$backto = __get_option('home') . '/';
	else
		$backto = clean_url(stripslashes($_GET['backto']));

So $_GET['backto'] is only /wp/trunk/wp-admin/post.php?action=edit
$_GET['post'] would be needed to return to the post.

ADDITIONAL DETAILS

Severity set to trivial, this bug just makes us look less than pros ;-)

Attachments

5753.diff (1.0 kB) - added by DD32 on 02/12/08 03:24:12.

Change History

02/02/08 16:31:51 changed by lloydbudd

  • component changed from General to Administration.

02/12/08 03:24:12 changed by DD32

  • attachment 5753.diff added.

02/12/08 03:24:55 changed by DD32

  • keywords set to has-patch.
  • milestone changed from 2.6 to 2.5.

URL Encode the goback url to preserve params.

02/28/08 21:57:49 changed by westi

  • status changed from new to closed.
  • resolution set to fixed.

(In [7095]) urlencode the goback url to preserve any parameters. Fixes #5753 props DD32.