mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Customizer: Use the _.now() function from Undescore.js for the current timestamp. Date.now() isn't supported in IE8.
fixes #27477. git-svn-id: https://develop.svn.wordpress.org/trunk@27651 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
686896998d
commit
a3abe09be2
@ -22,7 +22,7 @@
|
||||
header: {
|
||||
attachment_id: 0,
|
||||
url: '',
|
||||
timestamp: Date.now(),
|
||||
timestamp: _.now(),
|
||||
thumbnail_url: ''
|
||||
},
|
||||
choice: '',
|
||||
@ -212,7 +212,7 @@
|
||||
model.set('hidden', true);
|
||||
// Bump images to top except for special "Randomize" images
|
||||
if (!model.get('random')) {
|
||||
model.get('header').timestamp = Date.now();
|
||||
model.get('header').timestamp = _.now();
|
||||
this.sort();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user