diff --git a/wp-admin/js/common.js b/wp-admin/js/common.js index 7c3b403ad3..4e839e1ae9 100644 --- a/wp-admin/js/common.js +++ b/wp-admin/js/common.js @@ -1,38 +1,298 @@ -jQuery(document).ready( function() { + +wpCookies = { +// The following functions are from Cookie.js class in TinyMCE, Moxiecode, used under LGPL. + + each : function(o, cb, s) { + var n, l; + + if (!o) + return 0; + + s = s || o; + + if (typeof(o.length) != 'undefined') { + for (n=0, l = o.length; n