Changeset 5826
- Timestamp:
- 02/23/2012 03:09:09 AM (13 years ago)
- Location:
- trunk/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-filters.php
r5758 r5826 3 3 // Exit if accessed directly 4 4 if ( !defined( 'ABSPATH' ) ) exit; 5 6 // Add some filters to feedback messages 7 add_filter( 'bp_core_render_message_content', 'wptexturize' ); 8 add_filter( 'bp_core_render_message_content', 'convert_smilies' ); 9 add_filter( 'bp_core_render_message_content', 'convert_chars' ); 10 add_filter( 'bp_core_render_message_content', 'wpautop' ); 11 add_filter( 'bp_core_render_message_content', 'shortcode_unautop' ); 5 12 6 13 /** -
trunk/bp-core/bp-core-functions.php
r5768 r5826 329 329 330 330 if ( isset( $bp->template_message ) && $bp->template_message ) : 331 $type = ( 'success' == $bp->template_message_type ) ? 'updated' : 'error'; ?> 331 $type = ( 'success' == $bp->template_message_type ) ? 'updated' : 'error'; 332 $content = apply_filters( 'bp_core_render_message_content', $bp->template_message, $type ); ?> 332 333 333 334 <div id="message" class="<?php echo $type; ?>"> 334 <p><?php echo stripslashes( esc_attr( $bp->template_message ) ); ?></p> 335 336 <?php echo $content; ?> 337 335 338 </div> 336 339
Note: See TracChangeset
for help on using the changeset viewer.