Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#24873 closed defect (bug) (fixed)

Revisions: bugs when reloading on initial revision

Reported by: adamsilverstein Owned by: markjaquith
Priority: normal Milestone: 3.6
Component: Revisions Version: 3.5.2
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description (last modified by nacin)

Changeset [24667] introduced a bug where the revisions screen loads incorrectly if the selected revision is the original (1st) revision. to reproduce: go to the revisions screen; move the slider handle to the 1st (left in LTR) position; reload the page - expected behaviour is to see the diff, instead a no change diff is displayed.

Changeset [24814] introduced a bug where the tooltip placement is off, initially, for the leftmost tooltip position; to reproduce, go to the revisions screen; move the slider handle to the 1st (left in LTR) position; reload the page; hover over the leftmost revision WITHOUT first hovering over any other tick marks, the tooltip will be way off position to the left

Attachments (5)

28873.diff (1.0 KB ) - added by adamsilverstein 13 years ago.
corrects bugs when loading revisions screen on initial revision with diff display and tooltip placement
28873.2.diff (1.1 KB ) - added by adamsilverstein 13 years ago.
FIX tooltip placement on initial load
28873.3.diff (725 bytes ) - added by aaroncampbell 13 years ago.
24873.diff (1.7 KB ) - added by markjaquith 13 years ago.
28873.4.diff (1.3 KB ) - added by adamsilverstein 13 years ago.
proper diff loading on initial revision reload

Download all attachments as: .zip

Change History (15)

@adamsilverstein
13 years ago

corrects bugs when loading revisions screen on initial revision with diff display and tooltip placement

#1 @adamsilverstein
13 years ago

upon further testing, i have noticed that reloading the revisions screen on the non initial revisions breaks with this patch applied, investigating; the tooltip placement is corrected by the patch, resubmitting with only that change.

@adamsilverstein
13 years ago

FIX tooltip placement on initial load

#2 @nacin
13 years ago

  • Description modified (diff)
  • Milestone Awaiting Review3.6

#3 @aaroncampbell
13 years ago

I wasn't able to reproduce the first issue by getting a blank diff, but I was able to see an issue when loading with the first revisions selected. Basically, when you load with the first revision selected it is comparing FROM the last revision TO the first. 28873.3.diff checks to see if we're looking at the first revision and sets the FROM to 0.

@markjaquith
13 years ago

#4 @nacin
13 years ago

  • Keywords has-patch commit added

#5 @aaroncampbell
13 years ago

I can reproduce the first bug exactly, as long as the first revision and last revision match. In that case, when it compares the two, you see a no change diff.

@adamsilverstein
13 years ago

proper diff loading on initial revision reload

#6 @adamsilverstein
13 years ago

ooops, posted patch before refreshing so missed your patches. tested 24873.diff​ and that correctly fixes both issues mentioned in this ticket.

#7 @markjaquith
13 years ago

  • Owner set to markjaquith
  • Resolutionfixed
  • Status newclosed

In 24864:

Revisions: Fix PHP loading of comparison to first revision, and premature rendering of tooltip.

Props aaroncampbell, markjaquith. Fixes #24873 for trunk.

#8 @markjaquith
13 years ago

In 24865:

Revisions: Fix PHP loading of comparison to first revision, and premature rendering of tooltip.

Props aaroncampbell, markjaquith. Fixes #24873 for 3.6.

#9 @nacin
13 years ago

In 24866:

Fix pass by reference issue. see #24873.

#10 @nacin
13 years ago

In 24867:

Fix pass by reference issue. see #24873.

Merges [24865] to the 3.6 branch.

Note: See TracTickets for help on using tickets.