[wp-trac] [WordPress Trac] #34811: Preview Changes adds a new ?t= to url each time

WordPress Trac noreply at wordpress.org
Sat Nov 28 14:03:54 UTC 2015


#34811: Preview Changes adds a new ?t= to url each time
----------------------------+-----------------------------
 Reporter:  garethhadfield  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  4.3.1
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 Using Safari browser. When editing a page or post and you click the
 [Preview Changes] button it opens a new window/tab for the preview. If you
 close this preview window then click [Preview Changes] again you get a url
 that has ?t=XXXXX (you need to be quick to notice it since it immediately
 forwards to a different url).

 The problem is that if you close that preview window and then click
 [Preview Changes] again then the url gets ?t=XXXXXX?t=YYYYYY and it keeps
 adding ?t= each time you click [Preview Changes].

 The preview still works fine. But the extra ?t= appears to be unintended.

 The bug is in some workaround code in wp-admin/js/post.js
 The workaround targets Safari and adds '?t=' + ( new Date() ).getTime();
 to the url when you click the [Preview Changes] button.

 Problem occurs in a fresh install of 4.3.1 and also in 4.4-RC1-35744.

 Tested in Safari 8.0.7 (10600.7.12) OS X 10.10.4 (14E46).

 Video showing problem: https://youtu.be/n1XWSCf1KZQ (use HD quality and
 pause the video at 0:20)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34811>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list