WordPress.org

Make WordPress Core

Changes in / [25343:25345]


Ignore:
Files:
2 edited

Legend:

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

    r25343 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
  • /trunk/src/wp-includes/functions.php

    r25343 r25345  
    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.