WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 3 years ago

#15489 closed enhancement

Ajaxify Post/page trashing — at Version 8

Reported by: hew Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords: 3.2-early has-patch needs-testing
Focuses: Cc:

Description (last modified by lloydbudd)

To reproduce:

  1. You need a blog with enough posts or pages to give you at least two pages in the relevant administrative section.
  2. Trash a post or page.

Current behaviour:

It causes a reload of the entire page and drops you back on page 1.

Expected behaviour:

Post is trashed via AJAX

Change History (9)

comment:1 @hew5 years ago

Woops. Sorry about the lack of line breaks above.

Related: http://core.trac.wordpress.org/ticket/15488

comment:2 @hew5 years ago

Doh, forgot to mention. Trunk btw.

comment:3 @nacin5 years ago

  • Milestone changed from Awaiting Review to 3.1

The bug, I think reported elsewhere, is kicking you back to page 1. We don't have ajax trash for pages or posts, just comments, and that enhancement wasn't included in #14579, so it'll need to wait for a future release.

comment:4 @hew5 years ago

Yep, you're right. It's not Ajax...sorry (my local test instance reloads so fast it throws me a bit).

comment:5 @scribu5 years ago

  • Component changed from General to Administration
  • Description modified (diff)
  • Keywords 3.2-early added; ajax posts pages removed
  • Milestone changed from 3.1 to Future Release
  • Summary changed from Post/page ajax management broken to Ajaxify Post/page trashing
  • Type changed from defect (bug) to enhancement

Clarified ticket description.

comment:6 follow-up: @hew5 years ago

One note though... the current behavior (it causes a reload of the entire page and drops you back on page 1) does not occur in 3.0.1.

The entire page does reload but it stays on the page you were at.

My misdiagnosis of the Ajax angle here was a bit of a red herring and indeed an enhancement. The reload back to page 1 issue is the real bug. Nacin, did you find the other report?

comment:7 in reply to: ↑ 6 @duck_5 years ago

Replying to hew:

My misdiagnosis of the Ajax angle here was a bit of a red herring and indeed an enhancement. The reload back to page 1 issue is the real bug. Nacin, did you find the other report?

The reload back to the first page is because these pages are now ajax-ified. I think this might be fixed in #14579 if hashes are introduced to the URLs.

comment:8 @lloydbudd5 years ago

  • Description modified (diff)

@garyc405 years ago

there's a patch for that

Note: See TracTickets for help on using tickets.