Skip to:
Content

BuddyPress.org

Opened 16 years ago

Closed 16 years ago

#272 closed enhancement (fixed)

html in welcome widget

Reported by: pers's profile PerS Owned by:
Milestone: Priority: major
Severity: Version:
Component: Keywords:
Cc:

Description

I suggest that the welcome widget is changed so we can use html in it.

To do this, in bp-core-widgets.php, bp_core_widget_welcome_control()
change

$newoptionstext? = strip_tags( stripslashes( $_POSTbp-widget-welcome-text? ), '<img>' );

to

$newoptionstext? = stripslashes(wp_filter_post_kses( $_POSTbp-widget-welcome-text? ));

Change History (3)

#1 @PerS
16 years ago

I suggest that the welcome widget is changed so we can use html in it.

To do this, in bp-core-widgets.php, bp_core_widget_welcome_control()

change

$newoptions['text'] = strip_tags( stripslashes( $_POST['bp-widget-welcome-text'] ), '<img>' );

to

$newoptions['text'] = stripslashes(wp_filter_post_kses( $_POST['bp-widget-welcome-text'] ));

#2 @martinnr5
16 years ago

Any thoughts on this from the developers? I could probably fix this if it's in line with what the developers want.

#3 @apeatling
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.