mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
Remove extra slashes from link name and link description.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
241958270d
commit
e94ffb09b8
@ -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
Block a user