Fix QE for categories when category description has quotes
git-svn-id: https://develop.svn.wordpress.org/trunk@9963 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5573ff5349
commit
bda14a101a
@ -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
Block a user