Remove extra slashes from link name and link description.
git-svn-id: https://develop.svn.wordpress.org/trunk@1467 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
999d760f6c
commit
a4270969ce
|
@ -909,6 +909,17 @@ function upgrade_130() {
|
|||
$wpdb->query("UPDATE $wpdb->comments SET comment_content = '$comment_content', comment_author = '$comment_author' WHERE comment_ID = '$comment->comment_ID'");
|
||||
}
|
||||
}
|
||||
|
||||
// Remove extraneous backslashes.
|
||||
$links = $wpdb->get_results("SELECT link_id, link_name, link_description FROM $wpdb->links");
|
||||
if ($links) {
|
||||
foreach($links as $link) {
|
||||
$link_name = addslashes(deslash($link->link_name));
|
||||
$link_description = addslashes(deslash($link->link_description));
|
||||
$wpdb->query("UPDATE $wpdb->links SET link_name = '$link_name', link_description = '$link_description' WHERE link_id = '$link->link_id'");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue