From 9ac312adb50523ea95fae34770531fe807c5315b Mon Sep 17 00:00:00 2001 From: azaozz Date: Sat, 29 Nov 2008 13:03:03 +0000 Subject: [PATCH] Fix QE for categories when category description has quotes git-svn-id: http://svn.automattic.com/wordpress/trunk@9963 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-ajax.php | 7 +++++-- wp-admin/css/global.css | 2 ++ wp-admin/wp-admin.css | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/wp-admin/admin-ajax.php b/wp-admin/admin-ajax.php index 94351871f1..1df123b68b 100644 --- a/wp-admin/admin-ajax.php +++ b/wp-admin/admin-ajax.php @@ -915,10 +915,10 @@ case 'inline-save-tax': check_ajax_referer( 'taxinlineeditnonce', '_inline_edit' ); if ( ! current_user_can('manage_categories') ) - die( '' . __('Cheatin’ uh?') . '' ); + die( __('Cheatin’ uh?') ); if ( ! isset($_POST['tax_ID']) || ! ( $id = (int) $_POST['tax_ID'] ) ) - exit; + die(-1); switch ($_POST['tax_type']) { case 'cat' : @@ -929,6 +929,9 @@ case 'inline-save-tax': if ( isset($_POST['parent']) && (int) $_POST['parent'] > 0 ) $data['category_parent'] = $_POST['parent']; + $cat = get_category($id, ARRAY_A); + $data['category_description'] = $cat['category_description']; + $updated = wp_update_category($data); if ( $updated && !is_wp_error($updated) ) diff --git a/wp-admin/css/global.css b/wp-admin/css/global.css index 25e11128cd..3ed54c254b 100644 --- a/wp-admin/css/global.css +++ b/wp-admin/css/global.css @@ -388,6 +388,8 @@ h6 { .updated p, .error p { margin: 0.5em 0; + line-height: 1; + padding: 2px; } .wrap .updated, diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index 2a55a8c5bf..dda107e4c3 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -812,6 +812,7 @@ a.view-comment-post-link { .row-actions { visibility: hidden; + padding: 2px 0 0; } tr:hover .row-actions,