mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Don't let users who cannot publish edit published posts, even their own. Make consistent use of user_can_create_post(). http://mosquito.wordpress.org/view.php?id=1004 Props: MC_incubus
git-svn-id: https://develop.svn.wordpress.org/trunk@2441 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ case 'register':
|
||||
$user_nickname = $user_login;
|
||||
$user_nicename = sanitize_title($user_nickname);
|
||||
$now = gmdate('Y-m-d H:i:s');
|
||||
if (get_settings('new_users_can_blog') >= 1) $user_level = 1;
|
||||
$user_level = get_settings('new_users_can_blog');
|
||||
$password = substr( md5( uniqid( microtime() ) ), 0, 7);
|
||||
|
||||
$result = $wpdb->query("INSERT INTO $wpdb->users
|
||||
|
||||
Reference in New Issue
Block a user