Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/10/2014 06:09:14 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Update to newer slashing functions, as our minimum requirement is WordPress 3.6.

Also add filters to topic-title & topic-tags form fields. See #2719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/filters.php

    r5558 r5559  
    124124add_filter( 'bbp_edit_forum_pre_content', 'balanceTags',     40 );
    125125
    126 // No follow and stripslashes on user profile links
     126// No follow and wp_unslash on user profile links
    127127add_filter( 'bbp_get_reply_author_link',      'bbp_rel_nofollow' );
    128 add_filter( 'bbp_get_reply_author_link',      'stripslashes'     );
     128add_filter( 'bbp_get_reply_author_link',      'wp_unslash'       );
    129129add_filter( 'bbp_get_topic_author_link',      'bbp_rel_nofollow' );
    130 add_filter( 'bbp_get_topic_author_link',      'stripslashes'     );
     130add_filter( 'bbp_get_topic_author_link',      'wp_unslash'       );
    131131add_filter( 'bbp_get_user_favorites_link',    'bbp_rel_nofollow' );
    132 add_filter( 'bbp_get_user_favorites_link',    'stripslashes'     );
     132add_filter( 'bbp_get_user_favorites_link',    'wp_unslash'       );
    133133add_filter( 'bbp_get_user_subscribe_link',    'bbp_rel_nofollow' );
    134 add_filter( 'bbp_get_user_subscribe_link',    'stripslashes'     );
     134add_filter( 'bbp_get_user_subscribe_link',    'wp_unslash'       );
    135135add_filter( 'bbp_get_user_profile_link',      'bbp_rel_nofollow' );
    136 add_filter( 'bbp_get_user_profile_link',      'stripslashes'     );
     136add_filter( 'bbp_get_user_profile_link',      'wp_unslash'       );
    137137add_filter( 'bbp_get_user_profile_edit_link', 'bbp_rel_nofollow' );
    138 add_filter( 'bbp_get_user_profile_edit_link', 'stripslashes'     );
     138add_filter( 'bbp_get_user_profile_edit_link', 'wp_unslash'       );
    139139
    140140// Run filters on reply content
     
    176176add_filter( 'bbp_get_form_topic_edit_reason', 'esc_attr' );
    177177add_filter( 'bbp_get_form_topic_edit_reason', 'trim'     );
     178add_filter( 'bbp_get_form_topic_title',       'esc_attr' );
     179add_filter( 'bbp_get_form_topic_title',       'trim'     );
     180add_filter( 'bbp_get_form_topic_tags',        'esc_attr' );
     181add_filter( 'bbp_get_form_topic_tags',        'trim'     );
    178182
    179183// Add number format filter to functions requiring numeric output
Note: See TracChangeset for help on using the changeset viewer.