Make WordPress Core

Ticket #55563: 55563.diff

File 55563.diff, 569 bytes (added by elifvish, 2 years ago)
  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 729874068a..8540fcad2b 100644
    a b function get_allowed_mime_types( $user = null ) { 
    35293529        $t = wp_get_mime_types();
    35303530
    35313531        unset( $t['swf'], $t['exe'] );
    3532         if ( function_exists( 'current_user_can' ) ) {
     3532        if ( function_exists( 'current_user_can' ) && function_exists( 'wp_get_current_user' ) ) {
    35333533                $unfiltered = $user ? user_can( $user, 'unfiltered_html' ) : current_user_can( 'unfiltered_html' );
    35343534        }
    35353535