Fix QE for categories when category description has quotes

git-svn-id: http://svn.automattic.com/wordpress/trunk@9963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-11-29 13:03:03 +00:00
parent f7790aafcd
commit 9ac312adb5
3 changed files with 8 additions and 2 deletions

View File

@ -915,10 +915,10 @@ case 'inline-save-tax':
check_ajax_referer( 'taxinlineeditnonce', '_inline_edit' );
if ( ! current_user_can('manage_categories') )
die( '<tr colspan="6"><td>' . __('Cheatin&#8217; uh?') . '</td></tr>' );
die( __('Cheatin&#8217; 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) )

View File

@ -388,6 +388,8 @@ h6 {
.updated p,
.error p {
margin: 0.5em 0;
line-height: 1;
padding: 2px;
}
.wrap .updated,

View File

@ -812,6 +812,7 @@ a.view-comment-post-link {
.row-actions {
visibility: hidden;
padding: 2px 0 0;
}
tr:hover .row-actions,