mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Fixes from forum thread: http://wordpress.org/support/6/4615.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1187 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cbc0a250e7
commit
80121a74d2
@ -122,10 +122,10 @@ case 'editedcat':
|
||||
if ($user_level < 3)
|
||||
die (__('Cheatin’ uh?'));
|
||||
|
||||
$cat_name = addslashes(stripslashes(stripslashes($_POST['cat_name'])));
|
||||
$cat_ID = addslashes($_POST['cat_ID']);
|
||||
$cat_name = $wpdb->escape(stripslashes($_POST['cat_name']));
|
||||
$cat_ID = (int) $_POST['cat_ID'];
|
||||
$category_nicename = sanitize_title($cat_name);
|
||||
$category_description = $_POST['category_description'];
|
||||
$category_description = $wpdb->escape(stripslashes($_POST['category_description']));
|
||||
|
||||
$wpdb->query("UPDATE $tablecategories SET cat_name = '$cat_name', category_nicename = '$category_nicename', category_description = '$category_description', category_parent = $cat WHERE cat_ID = $cat_ID");
|
||||
|
||||
|
@ -756,7 +756,7 @@ function oneclickbookmarklet(blah) {
|
||||
<?php
|
||||
} else if ($is_macIE) {
|
||||
?>
|
||||
<a href="javascript:Q='';if(top.frames.length==0);void(btw=window.open('<?php echo get_settings('siteurl'); ?>/wp-admin/bookmarklet.php?text='+escape(document.getSelection())+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();"><?php prtinf(__('Press it - %s'), get_settings('blogname')); ?></a>
|
||||
<a href="javascript:Q='';if(top.frames.length==0);void(btw=window.open('<?php echo get_settings('siteurl'); ?>/wp-admin/bookmarklet.php?text='+escape(document.getSelection())+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title)+'<?php echo $bookmarklet_tbpb ?>','bookmarklet','scrollbars=yes,width=600,height=<?php echo $bookmarklet_height ?>,left=100,top=150,status=yes'));btw.focus();"><?php printf(__('Press it - %s'), get_settings('blogname')); ?></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user