Make WordPress Core

Changeset 25345


Ignore:
Timestamp:
09/11/2013 04:49:47 AM (8 years ago)
Author:
nacin
Message:

Avoid error in ms-files.php after [25317] (merged as [25322]). Merges [25344] to 3.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.6/wp-includes/functions.php

    r25339 r25345  
    20332033
    20342034    unset( $t['swf'], $t['exe'] );
    2035     $unfiltered = $user ? user_can( $user, 'unfiltered_html' ) : current_user_can( 'unfiltered_html' );
    2036     if ( ! $unfiltered )
     2035    if ( function_exists( 'current_user_can' ) )
     2036        $unfiltered = $user ? user_can( $user, 'unfiltered_html' ) : current_user_can( 'unfiltered_html' );
     2037
     2038    if ( empty( $unfiltered ) )
    20372039        unset( $t['htm|html'] );
    20382040
Note: See TracChangeset for help on using the changeset viewer.