Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#5753 closed defect (bug) (fixed)

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

Reported by: lloydbudd's profile lloydbudd Owned by:
Milestone: 2.5 Priority: lowest
Severity: trivial Version:
Component: Administration Keywords: has-patch
Focuses: 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 (1)

5753.diff (996 bytes) - added by DD32 16 years ago.

Download all attachments as: .zip

Change History (4)

#1 @lloydbudd
16 years ago

  • Component changed from General to Administration

@DD32
16 years ago

#2 @DD32
16 years ago

  • Keywords has-patch added
  • Milestone changed from 2.6 to 2.5

URL Encode the goback url to preserve params.

#3 @westi
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.