diff -r 3d4e9c994f10 -r a86126ab1dd4 wp/wp-includes/js/utils.js --- a/wp/wp-includes/js/utils.js Tue Oct 22 16:11:46 2019 +0200 +++ b/wp/wp-includes/js/utils.js Tue Dec 15 13:49:49 2020 +0100 @@ -115,7 +115,7 @@ if ( typeof( expires ) === 'object' && expires.toGMTString ) { expires = expires.toGMTString(); } else if ( parseInt( expires, 10 ) ) { - d.setTime( d.getTime() + ( parseInt( expires, 10 ) * 1000 ) ); // time must be in milliseconds + d.setTime( d.getTime() + ( parseInt( expires, 10 ) * 1000 ) ); // Time must be in milliseconds. expires = d.toGMTString(); } else { expires = ''; @@ -153,9 +153,11 @@ return ''; }; -// Both name and value must be only ASCII letters, numbers or underscore -// and the shorter, the better (cookies can store maximum 4KB). Not suitable to store text. -// The value is converted and stored as string. +/* + * Both name and value must be only ASCII letters, numbers or underscore + * and the shorter, the better (cookies can store maximum 4KB). Not suitable to store text. + * The value is converted and stored as string. + */ window.setUserSetting = function( name, value, _del ) { if ( 'object' !== typeof userSettings ) { return false; @@ -192,7 +194,7 @@ return setUserSetting( name, '', 1 ); }; -// Returns all settings as js object. +// Returns all settings as JS object. window.getAllUserSettings = function() { if ( 'object' !== typeof userSettings ) { return {};