WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/29/2008 01:03:03 PM (11 years ago)
Author:
azaozz
Message:

Fix QE for categories when category description has quotes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r9868 r9963  
    916916
    917917    if ( ! current_user_can('manage_categories') )
    918         die( '<tr colspan="6"><td>' . __('Cheatin&#8217; uh?') . '</td></tr>' );
     918        die( __('Cheatin&#8217; uh?') );
    919919
    920920    if ( ! isset($_POST['tax_ID']) || ! ( $id = (int) $_POST['tax_ID'] ) )
    921         exit;
     921        die(-1);
    922922
    923923    switch ($_POST['tax_type']) {
     
    929929            if ( isset($_POST['parent']) && (int) $_POST['parent'] > 0 )
    930930                $data['category_parent'] = $_POST['parent'];
     931
     932            $cat = get_category($id, ARRAY_A);
     933            $data['category_description'] = $cat['category_description'];
    931934
    932935            $updated = wp_update_category($data);
Note: See TracChangeset for help on using the changeset viewer.