]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/cat-js.php
Wordpress 2.0.11-scripts
[autoinstalls/wordpress.git] / wp-admin / cat-js.php
index 156e8f5c471e212a35f85d9d2435ac3f29c88f3e..4ad125b35d53822222c4a97bc04b49d1bc7e42f2 100644 (file)
@@ -144,9 +144,9 @@ function ajaxNewCat() {
        var split_cats = new Array(1);
        var catString = '';
 
-       catString = 'ajaxnewcat=' + encodeURIComponent(newcat.value);
+       catString = ajaxCat.encVar('ajaxnewcat', newcat.value) + '&' + ajaxCat.encVar('cookie', document.cookie);
        ajaxCat.requestFile = 'edit-form-ajax-cat.php';
-       ajaxCat.method = 'GET';
+       ajaxCat.method = 'POST';
        ajaxCat.onLoading = newCatLoading;
        ajaxCat.onLoaded = newCatLoaded;
        ajaxCat.onInteractive = newCatInteractive;
@@ -175,4 +175,4 @@ function myPload( str ) {
        if ( currentElement != "" )
                fixedExplode[count] = currentElement;
        return fixedExplode;
-}
\ No newline at end of file
+}