diff --git a/wp-admin/help/en/linkmanager.php.help.html b/wp-admin/help/en/linkmanager.php.help.html
index a8d6b103f2..c3538b808d 100644
--- a/wp-admin/help/en/linkmanager.php.help.html
+++ b/wp-admin/help/en/linkmanager.php.help.html
@@ -65,9 +65,15 @@
after the image or name.
Additionaly, if you have sufficient privileges, Edit and
- Delete buttons are displayed.
+ Delete buttons are displayed. Along with a checkbox. The
+ checkboxes are used in conjunction with the function buttons at the bottom
+ of the list of links.
+ Assign Ownership
+ This list and button allow you to assign the ownership of links (for which
+ you have administration privileges) to someone else.
+
Add a link
diff --git a/wp-admin/linkmanager.php b/wp-admin/linkmanager.php
index 78dc1ccbaa..f4d86ef36f 100644
--- a/wp-admin/linkmanager.php
+++ b/wp-admin/linkmanager.php
@@ -51,7 +51,8 @@ if (!get_magic_quotes_gpc()) {
$b2varstoreset = array('action','standalone','cat_id', 'linkurl', 'name', 'image',
'description', 'visible', 'target', 'category', 'link_id',
- 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel', 'notes');
+ 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
+ 'notes'. 'linkcheck');
for ($i=0; $i= the
+ //userlevel of the owner of the link then we can proceed.
+
+ $all_links = join(',', $linkcheck);
+ $results = $wpdb->get_results("SELECT link_id, link_owner, user_level FROM $tablelinks LEFT JOIN $tableusers ON link_owner = ID WHERE link_id in ($all_links)");
+ foreach ($results as $row) {
+ if ($user_level >= $row->user_level) { // ok to proceed
+ $ids_to_change[] = $row->link_id;
+ }
+ }
+
+ // should now have an array of links we can change
+ $all_links = join(',', $ids_to_change);
+ $q = $wpdb->query("update $tablelinks SET link_owner='$newowner' WHERE link_id IN ($all_links)");
+
+ header('Location: linkmanager.php');
+ break;
+ }
case 'Add':
{
$standalone = 1;
@@ -368,6 +396,21 @@ switch ($action) {
if ($action != "popup") {
?>
+