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/users.php

    r21413 r21501  
    213213    </ul>
    214214<?php if ( $go_delete ) : ?>
    215     <fieldset><p><legend><?php echo _n( 'What should be done with posts and links owned by this user?', 'What should be done with posts and links owned by these users?', $go_delete ); ?></legend></p>
     215    <fieldset><p><legend><?php echo _n( 'What should be done with posts owned by this user?', 'What should be done with posts owned by these users?', $go_delete ); ?></legend></p>
    216216    <ul style="list-style:none;">
    217217        <li><label><input type="radio" id="delete_option0" name="delete_option" value="delete" checked="checked" />
    218         <?php _e('Delete all posts and links.'); ?></label></li>
     218        <?php _e('Delete all posts.'); ?></label></li>
    219219        <li><input type="radio" id="delete_option1" name="delete_option" value="reassign" />
    220         <?php echo '<label for="delete_option1">'.__('Attribute all posts and links to:').'</label>';
     220        <?php echo '<label for="delete_option1">'.__('Attribute all posts to:').'</label>';
    221221        wp_dropdown_users( array( 'name' => 'reassign_user', 'exclude' => array_diff( $userids, array($current_user->ID) ) ) ); ?></li>
    222222    </ul></fieldset>
Note: See TracChangeset for help on using the changeset viewer.