mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Move 2 ad hoc user admin functions:
* Move `use_ssl_preference()` from `wp-admin/user-edit.php` to `wp-admin/includes/user.php`. * Move `admin_created_user_email()` from `wp-admin/user-new.php` to `wp-admin/includes/user.php`. See #33813. git-svn-id: https://develop.svn.wordpress.org/trunk@34021 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -59,22 +59,6 @@ $wp_http_referer = remove_query_arg(array('update', 'delete_count'), $wp_http_re
|
||||
|
||||
$user_can_edit = current_user_can( 'edit_posts' ) || current_user_can( 'edit_pages' );
|
||||
|
||||
/**
|
||||
* Optional SSL preference that can be turned on by hooking to the 'personal_options' action.
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param object $user User data object
|
||||
*/
|
||||
function use_ssl_preference($user) {
|
||||
?>
|
||||
<tr class="user-use-ssl-wrap">
|
||||
<th scope="row"><?php _e('Use https')?></th>
|
||||
<td><label for="use_ssl"><input name="use_ssl" type="checkbox" id="use_ssl" value="1" <?php checked('1', $user->use_ssl); ?> /> <?php _e('Always use https when visiting the admin'); ?></label></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter whether to allow administrators on Multisite to edit every user.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user