Changeset 4604 for trunk/includes/common/template-tags.php
- Timestamp:
- 12/20/2012 12:59:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/common/template-tags.php
r4579 r4604 2242 2242 * @since bbPress (r2780) 2243 2243 * 2244 * @uses allowed_tags() To get the allowed tags2244 * @uses bbp_kses_allowed_tags() To get the allowed tags 2245 2245 * @uses apply_filters() Calls 'bbp_allowed_tags' with the tags 2246 2246 * @return string HTML allowed tags entity encoded. 2247 2247 */ 2248 2248 function bbp_get_allowed_tags() { 2249 return apply_filters( 'bbp_get_allowed_tags', allowed_tags() ); 2249 2250 $allowed = ''; 2251 2252 foreach ( (array) bbp_kses_allowed_tags() as $tag => $attributes ) { 2253 $allowed .= '<' . $tag; 2254 if ( 0 < count( $attributes ) ) { 2255 foreach ( array_keys( $attributes ) as $attribute ) { 2256 $allowed .= ' ' . $attribute . '=""'; 2257 } 2258 } 2259 $allowed .= '> '; 2260 } 2261 2262 return apply_filters( 'bbp_get_allowed_tags', htmlentities( $allowed ) ); 2250 2263 } 2251 2264
Note: See TracChangeset
for help on using the changeset viewer.