WordPress.org

Make WordPress Core

Changeset 25344


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

Avoid error in ms-files.php after [25317].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r25338 r25344  
    20442044
    20452045    unset( $t['swf'], $t['exe'] );
    2046     $unfiltered = $user ? user_can( $user, 'unfiltered_html' ) : current_user_can( 'unfiltered_html' );
    2047     if ( ! $unfiltered )
     2046    if ( function_exists( 'current_user_can' ) )
     2047        $unfiltered = $user ? user_can( $user, 'unfiltered_html' ) : current_user_can( 'unfiltered_html' );
     2048
     2049    if ( empty( $unfiltered ) )
    20482050        unset( $t['htm|html'] );
    20492051
Note: See TracChangeset for help on using the changeset viewer.