Removing the blogroll in Wordpress 3.5 correctly
Links/blogroll is hidden by default in Wordpress 3.5 since the functionality does not fit in a true CMS. In a future version it will be moved to a plugin.
Those that have existing installations and upgraded to 3.5 still have it activated by default. What if you do not want that feature, but want to remove it in a 'clean' way.
This plugin does the opposite, restoring the links menu to new installation.
<pre>add_filter( 'pre_option_link_manager_enabled', '__return_true' );</pre>
One could expect that doing the opposite would give us the result we want? No.
In the Wordpress core (wp-admin/includes/bookmarks.php r:270) we can see that this is apparently controlled with roles and capabilities.
https://gist.github.com/4626203
Thus you must use the 'remove_cap' function to remove the 'manage_links' capability. This will hide the links menu from all users without that capability.
https://gist.github.com/4626226
Det finns även plugin som låter dig redigera roller om man föredrar det.