mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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:
@@ -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) )
|
||||
|
||||
Reference in New Issue
Block a user