Skip to content

Commit

Permalink
updates deprecated get_currentuserinfo to wp_get_current_user for WP …
Browse files Browse the repository at this point in the history
…v. 4.5 and higher -- the right way -- as listed in issue WPBuddy#844
  • Loading branch information
MsPseudolus committed Jul 11, 2016
1 parent 7d7ea25 commit 6501ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function largo_edit_permission_check() {
$screen = get_current_screen();

global $wp_version;
if ( !substr( $wp_version, 0, 3 ) === "4.5" ) {
if ( $wp_version < 4.5 ) {
get_currentuserinfo();
} else {
wp_get_current_user();
Expand Down

0 comments on commit 6501ba5

Please sign in to comment.