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:
parent
f7790aafcd
commit
9ac312adb5
|
@ -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’ uh?') . '</td></tr>' );
|
||||
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) )
|
||||
|
|
|
@ -388,6 +388,8 @@ h6 {
|
|||
.updated p,
|
||||
.error p {
|
||||
margin: 0.5em 0;
|
||||
line-height: 1;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.wrap .updated,
|
||||
|
|
|
@ -812,6 +812,7 @@ a.view-comment-post-link {
|
|||
|
||||
.row-actions {
|
||||
visibility: hidden;
|
||||
padding: 2px 0 0;
|
||||
}
|
||||
|
||||
tr:hover .row-actions,
|
||||
|
|
Loading…
Reference in New Issue