mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 22:57:20 +00:00
Use get_current_user() and get_current_user_id() instead of global . Props filofo. see #13934 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@15315 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -216,7 +216,7 @@ class WP_Importer {
|
||||
* @return bool
|
||||
*/
|
||||
function is_user_over_quota() {
|
||||
global $current_user, $current_blog;
|
||||
global $current_blog;
|
||||
|
||||
if ( function_exists( 'upload_is_user_over_quota' ) ) {
|
||||
if ( upload_is_user_over_quota( 1 ) ) {
|
||||
|
||||
Reference in New Issue
Block a user