Make WordPress Core


Ignore:
Timestamp:
08/13/2012 04:18:42 PM (12 years ago)
Author:
nacin
Message:

Hide the link manager from the UI on upgrade, if the site has no links. New DB option, link_manager_enabled.

Enforce this by denying the 'manage_links' capability, which hides the All Links, Add New Link, and Link Categories screens. Hide WP_Widget_Links and the UI for the default_link_category as well.

Convert all references to 'posts and links' when handling reassignment on user deletion to just 'posts'.

see #21307.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-writing.php

    r19818 r21501  
    108108</td>
    109109</tr>
    110 <?php endif; endif; ?>
     110<?php endif; endif;
     111
     112if ( get_option( 'link_manager_enabled' ) ) :
     113?>
    111114<tr valign="top">
    112115<th scope="row"><label for="default_link_category"><?php _e('Default Link Category') ?></label></th>
     
    117120</td>
    118121</tr>
     122<?php endif; ?>
     123
    119124<?php do_settings_fields('writing', 'default'); ?>
    120125</table>
Note: See TracChangeset for help on using the changeset viewer.