From 2190b8ea41eed229fc09113038ae9529776e43a3 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 27 Mar 2007 23:51:26 +0000 Subject: [PATCH] Fix encoding of cats added over AJAX. Props mdawaffe. fixes #3676 git-svn-id: http://svn.automattic.com/wordpress/trunk@5123 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/categories.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/categories.js b/wp-admin/categories.js index e0adc47f4..3cee6c68e 100644 --- a/wp-admin/categories.js +++ b/wp-admin/categories.js @@ -2,7 +2,7 @@ addLoadEvent(function() { if (!theList.theList) return false; document.forms.addcat.submit.onclick = function(e) {return killSubmit('theList.ajaxAdder("cat", "addcat");', e); }; theList.addComplete = function(what, where, update, transport) { - var name = getNodeValue(transport.responseXML, 'name'); + var name = getNodeValue(transport.responseXML, 'name').unescapeHTML(); var id = transport.responseXML.getElementsByTagName(what)[0].getAttribute('id'); var options = document.forms['addcat'].category_parent.options; options[options.length] = new Option(name, id);