Changeset 9741
- Timestamp:
- 04/11/2015 11:07:06 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/src/bp-core/bp-core-filters.php
r9734 r9741 541 541 $displayed_user_name = bp_get_displayed_user_fullname(); 542 542 543 /**544 * Strip span tags out of title part strings.545 *546 * This is a temporary function for compatibility with WordPress versions547 * less than 4.0, and should be removed at a later date.548 *549 * @param string $title_part550 * @return string551 */552 function _bp_strip_spans_from_title( $title_part = '' ) {553 $title = $title_part;554 $span = strpos( $title, '<span' );555 if ( false !== $span ) {556 $title = substr( $title, 0, $span - 1 );557 }558 return $title;559 }560 561 543 // Displayed user 562 544 if ( ! empty( $displayed_user_name ) && ! is_404() ) { … … 691 673 add_filter( 'bp_modify_page_title', 'convert_chars' ); 692 674 add_filter( 'bp_modify_page_title', 'esc_html' ); 675 676 /** 677 * Strip span tags out of title part strings. 678 * 679 * This is a temporary function for compatibility with WordPress versions 680 * less than 4.0, and should be removed at a later date. 681 * 682 * @param string $title_part 683 * @return string 684 */ 685 function _bp_strip_spans_from_title( $title_part = '' ) { 686 $title = $title_part; 687 $span = strpos( $title, '<span' ); 688 if ( false !== $span ) { 689 $title = substr( $title, 0, $span - 1 ); 690 } 691 return $title; 692 } 693 693 694 694 /**
Note: See TracChangeset
for help on using the changeset viewer.