Make WordPress Core

Changeset 5123


Ignore:
Timestamp:
03/27/2007 11:51:26 PM (18 years ago)
Author:
ryan
Message:

Fix encoding of cats added over AJAX. Props mdawaffe. fixes #3676

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/categories.js

    r4187 r5123  
    33    document.forms.addcat.submit.onclick = function(e) {return killSubmit('theList.ajaxAdder("cat", "addcat");', e); };
    44    theList.addComplete = function(what, where, update, transport) {
    5         var name = getNodeValue(transport.responseXML, 'name');
     5        var name = getNodeValue(transport.responseXML, 'name').unescapeHTML();
    66        var id = transport.responseXML.getElementsByTagName(what)[0].getAttribute('id');
    77        var options = document.forms['addcat'].category_parent.options;
Note: See TracChangeset for help on using the changeset viewer.