From a3abe09be24d7640865897a63498203032dcff50 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Sat, 22 Mar 2014 10:53:10 +0000 Subject: [PATCH] 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 --- src/wp-includes/js/customize-models.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/js/customize-models.js b/src/wp-includes/js/customize-models.js index 6197a28ff5..f97750b276 100644 --- a/src/wp-includes/js/customize-models.js +++ b/src/wp-includes/js/customize-models.js @@ -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(); } }