Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/10/2013 11:53:07 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Theme Compatibility:

  • When locating template files, filter 'bbp_get_template_stack' rather than 'bbp_get_template_part'
  • Fixes bug where using bbp_locate_template() directly would result in missing subdirectory locations.
File:
1 edited

Legend:

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

    r4750 r4762  
    7777 * bbp_template_include() works and do something similar. :)
    7878 */
    79 add_filter( 'bbp_template_include', 'bbp_template_include_theme_supports', 2, 1 );
    80 add_filter( 'bbp_template_include', 'bbp_template_include_theme_compat',   4, 2 );
     79add_filter( 'bbp_template_include',   'bbp_template_include_theme_supports', 2, 1 );
     80add_filter( 'bbp_template_include',   'bbp_template_include_theme_compat',   4, 2 );
     81
     82// Filter bbPress template locations
     83add_filter( 'bbp_get_template_stack', 'bbp_add_template_stack_locations'          );
    8184
    8285// Links
     
    182185add_filter( 'bbp_get_reply_author_link',    'bbp_suppress_private_author_link', 10, 2 );
    183186
    184 // Filter bbPress template locations
    185 add_filter( 'bbp_get_template_part',         'bbp_add_template_locations' );
    186 add_filter( 'bbp_get_profile_template',      'bbp_add_template_locations' );
    187 add_filter( 'bbp_get_profileedit_template',  'bbp_add_template_locations' );
    188 add_filter( 'bbp_get_singleview_template',   'bbp_add_template_locations' );
    189 add_filter( 'bbp_get_forumedit_template',    'bbp_add_template_locations' );
    190 add_filter( 'bbp_get_topicedit_template',    'bbp_add_template_locations' );
    191 add_filter( 'bbp_get_topicsplit_template',   'bbp_add_template_locations' );
    192 add_filter( 'bbp_get_topicmerge_template',   'bbp_add_template_locations' );
    193 add_filter( 'bbp_get_topictag_template',     'bbp_add_template_locations' );
    194 add_filter( 'bbp_get_topictagedit_template', 'bbp_add_template_locations' );
    195 add_filter( 'bbp_get_replymove_template',    'bbp_add_template_locations' );
    196 
    197187// Topic and reply author display names
    198188add_filter( 'bbp_get_topic_author_display_name', 'wptexturize'   );
Note: See TracChangeset for help on using the changeset viewer.