Changes in / [25343:25345]
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
/branches/3.6/wp-includes/functions.php
r25343 r25345 2033 2033 2034 2034 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 ) ) 2037 2039 unset( $t['htm|html'] ); 2038 2040 -
/trunk/src/wp-includes/functions.php
r25343 r25345 2044 2044 2045 2045 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 ) ) 2048 2050 unset( $t['htm|html'] ); 2049 2051
Note: See TracChangeset
for help on using the changeset viewer.