WordPress.org

Make WordPress Core

Changeset 9963


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

Fix QE for categories when category description has quotes

Location:
trunk/wp-admin
Files:
3 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);
  • trunk/wp-admin/css/global.css

    r9934 r9963  
    389389.error p {
    390390    margin: 0.5em 0;
     391    line-height: 1;
     392    padding: 2px;
    391393}
    392394
  • trunk/wp-admin/wp-admin.css

    r9960 r9963  
    813813.row-actions {
    814814    visibility: hidden;
     815    padding: 2px 0 0;
    815816}
    816817
Note: See TracChangeset for help on using the changeset viewer.