Skip to:
Content

BuddyPress.org

Opened 18 years ago

Closed 17 years ago

#272 closed enhancement (fixed)

html in welcome widget

Reported by: PerS Owned by:
Priority: major Milestone:
Component: Version:
Severity: 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
18 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
17 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
17 years ago

  • Resolutionfixed
  • Status newclosed
Note: See TracTickets for help on using tickets.