Changeset 1779
- Timestamp:
- 09/03/2009 06:59:40 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
bp-activity/bp-activity-classes.php (modified) (1 diff)
-
bp-activity/bp-activity-filters.php (modified) (2 diffs)
-
bp-friends.php (modified) (2 diffs)
-
bp-groups.php (modified) (2 diffs)
-
bp-wire.php (modified) (1 diff)
-
bp-wire/bp-wire-filters.php (modified) (2 diffs)
-
bp-xprofile.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r1776 r1779 85 85 global $wpdb, $bp; 86 86 87 /* This doesn't seem to be working correctly at the moment, so it is disabled [TODO] */ 88 return false; 89 87 90 /* If we have an item id, try and match on that, if not do a content match */ 88 91 if ( $this->item_id ) { -
trunk/bp-activity/bp-activity-filters.php
r1691 r1779 2 2 3 3 /* Apply WordPress defined filters */ 4 add_filter( 'bp_get_activity_content', 'wp_filter_kse s', 1 );4 add_filter( 'bp_get_activity_content', 'wp_filter_kse', 1 ); 5 5 add_filter( 'bp_get_activity_content', 'force_balance_tags' ); 6 6 add_filter( 'bp_get_activity_content', 'wptexturize' ); … … 16 16 $allowedtags['a']['class'] = array(); 17 17 $allowedtags['img'] = array(); 18 $allowedtags['img']['src'] = array(); 19 $allowedtags['img']['alt'] = array(); 20 $allowedtags['img']['class'] = array(); 21 $allowedtags['img']['id'] = array(); 22 18 23 return $allowedtags; 19 24 } -
trunk/bp-friends.php
r1775 r1779 219 219 } 220 220 221 bp_core_redirect( $_SERVER['HTTP_REFERER']);221 bp_core_redirect( wp_get_referer() ); 222 222 223 223 return false; … … 257 257 } 258 258 259 bp_core_redirect( $_SERVER['HTTP_REFERER']);259 bp_core_redirect( wp_get_referer() ); 260 260 261 261 return false; -
trunk/bp-groups.php
r1766 r1779 778 778 bp_core_add_message( __('Wire message successfully posted.', 'buddypress') ); 779 779 780 if ( !strpos( $_SERVER['HTTP_REFERER'], $bp->wire->slug ) )780 if ( !strpos( wp_get_referer(), $bp->wire->slug ) ) 781 781 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) ); 782 782 else … … 795 795 bp_core_add_message( __('Wire message successfully deleted.', 'buddypress') ); 796 796 797 if ( !strpos( $_SERVER['HTTP_REFERER'], $bp->wire->slug ) )797 if ( !strpos( wp_get_referer(), $bp->wire->slug ) ) 798 798 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) ); 799 799 else -
trunk/bp-wire.php
r1777 r1779 93 93 $wire_post->user_id = $bp->loggedin_user->id; 94 94 $wire_post->date_posted = time(); 95 96 $allowed_tags = apply_filters( 'bp_wire_post_allowed_tags', '<a><b><strong><i><em><img>' ); 97 98 $wire_post->content = apply_filters( 'bp_wire_post_content', $message ); 95 $wire_post->content = $message; 99 96 100 97 if ( !$wire_post->save() ) -
trunk/bp-wire/bp-wire-filters.php
r1608 r1779 2 2 3 3 /* Apply WordPress defined filters */ 4 add_filter( 'bp_wire_post_content_before_save', 'wp_filter_kses', 1 ); 4 5 add_filter( 'bp_get_wire_post_content', 'wp_filter_kses', 1 ); 6 5 7 add_filter( 'bp_get_wire_post_content', 'wptexturize' ); 6 8 add_filter( 'bp_get_wire_post_content', 'convert_smilies', 2 ); … … 10 12 add_filter( 'bp_get_wire_post_content', 'make_clickable' ); 11 13 12 add_filter( 'bp_wire_post_content_before_save', 'wp_filter_kses', 1 );13 14 add_filter( 'bp_wire_post_content_before_save', 'force_balance_tags' ); 14 15 16 function bp_wire_add_allowed_tags( $allowedtags ) { 17 $allowedtags['strong'] = array(); 18 $allowedtags['em'] = array(); 19 $allowedtags['img'] = array(); 20 return $allowedtags; 21 } 22 add_filter( 'edit_allowedtags', 'bp_wire_add_allowed_tags', 1 ); 23 24 15 25 ?> -
trunk/bp-xprofile.php
r1760 r1779 459 459 bp_core_add_message( __( 'There was a problem deleting that avatar, please try again.', 'buddypress' ), 'error' ); 460 460 461 bp_core_redirect( $_SERVER['HTTP_REFERER']);461 bp_core_redirect( wp_get_referer() ); 462 462 } 463 463 add_action( 'wp', 'xprofile_action_delete_avatar', 3 ); … … 522 522 } 523 523 524 if ( !strpos( $_SERVER['HTTP_REFERER'], $bp->wire->slug ) ) {524 if ( !strpos( wp_get_referer(), $bp->wire->slug ) ) { 525 525 bp_core_redirect( $bp->displayed_user->domain ); 526 526 } else { … … 564 564 } 565 565 566 if ( !strpos( $_SERVER['HTTP_REFERER'], $bp->wire->slug ) ) {566 if ( !strpos( wp_get_referer(), $bp->wire->slug ) ) { 567 567 bp_core_redirect( $bp->displayed_user->domain ); 568 568 } else {
Note: See TracChangeset
for help on using the changeset viewer.