Changeset 3143 for branches/1.2/bp-forums/bp-forums-templatetags.php
- Timestamp:
- 07/22/2010 10:51:24 AM (16 years ago)
- File:
-
- 1 edited
-
branches/1.2/bp-forums/bp-forums-templatetags.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-forums/bp-forums-templatetags.php
r3106 r3143 257 257 258 258 $post = bb_get_first_post( (int)$forum_template->topic->topic_id, false ); 259 return apply_filters( 'bp_get_the_topic_text', attribute_escape( $post->post_text ) );259 return apply_filters( 'bp_get_the_topic_text', esc_attr( $post->post_text ) ); 260 260 } 261 261 … … 971 971 972 972 $post = bp_forums_get_post( $bp->action_variables[4] ); 973 return apply_filters( 'bp_get_the_topic_post_edit_text', attribute_escape( $post->post_text ) );973 return apply_filters( 'bp_get_the_topic_post_edit_text', esc_attr( $post->post_text ) ); 974 974 } 975 975 … … 1015 1015 ?> 1016 1016 <form action="" method="get" id="search-forums-form"> 1017 <label><input type="text" name="s" id="forums_search" value="<?php echo attribute_escape($search_value) ?>" onfocus="if (this.value == '<?php _e( 'Search anything...', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search anything...', 'buddypress' ) ?>';}" /></label>1017 <label><input type="text" name="s" id="forums_search" value="<?php echo esc_attr($search_value) ?>" onfocus="if (this.value == '<?php _e( 'Search anything...', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e( 'Search anything...', 'buddypress' ) ?>';}" /></label> 1018 1018 <input type="submit" id="forums_search_submit" name="forums_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" /> 1019 1019 </form> … … 1063 1063 global $topic_template; 1064 1064 1065 return apply_filters( 'bp_get_forum_action', $bp->root_domain . attribute_escape( $_SERVER['REQUEST_URI'] ) );1065 return apply_filters( 'bp_get_forum_action', $bp->root_domain . esc_attr( $_SERVER['REQUEST_URI'] ) ); 1066 1066 } 1067 1067 … … 1072 1072 global $bp; 1073 1073 1074 return apply_filters( 'bp_get_forum_topic_action', $bp->root_domain . attribute_escape( $_SERVER['REQUEST_URI'] ) );1074 return apply_filters( 'bp_get_forum_topic_action', $bp->root_domain . esc_attr( $_SERVER['REQUEST_URI'] ) ); 1075 1075 } 1076 1076
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)