I tried this plugin and it doesn’t seem to do anything… When will it be updated for WP 4.7.2 ?
]]>Notice: get_currentuserinfo is deprecated since version 4.5! Use wp_get_current_user() instead.
I noticed that the https://www.ads-software.com/plugins/duplicate-post/ plugin does it this way:
/**
* Get the currently registered user
*/
function duplicate_post_get_current_user() {
if (function_exists('wp_get_current_user')) {
return wp_get_current_user();
} else if (function_exists('get_currentuserinfo')) {
global $userdata;
get_currentuserinfo();
return $userdata;
} else {
$user_login = $_COOKIE[USER_COOKIE];
$sql = $wpdb->prepare("SELECT * FROM $wpdb->users WHERE user_login=%s", $user_login);
$current_user = $wpdb->get_results($sql);
return $current_user;
}
}
]]>
Hello together,
could you make the shift-A function optional? I use the admin bar for users to login, if they type an “A” in their username or password, the admin bar = login form disappears
Thank you
Patrick