Make WordPress Core

Changeset 3187


Ignore:
Timestamp:
11/21/2005 06:28:32 PM (18 years ago)
Author:
ryan
Message:

Filter blog name and description through kses. Props donncha. fixes #1931

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options.php

    r3054 r3187  
    5353            if( in_array($option, $nonbools) && ( $value == '0' || $value == '') )
    5454          $value = 'closed';
     55
     56        if( $option == 'blogdescription' || $option == 'blogname' )
     57            if (current_user_can('unfiltered_html') == false)
     58                $value = wp_filter_post_kses( $value );
    5559
    5660        if ( update_option($option, $value) )
Note: See TracChangeset for help on using the changeset viewer.