Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/15/2017 04:31:59 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat: Improve loading & support for external template packs.

  • Better error handling if tempate pack is broken, unloaded, or missing
  • Consolidate favs & subs code to use the same central handlers, by passing an object_id and object_type around (for future support of term subscriptions)
  • Rename data addtributes from previous BuddyPress favs & subs fixes
  • Adjust load order of template pack setup so that it's as late as possible, allowing template pack authors more time to get registered
  • Automatically add the current template pack to the template stack (multiple packs can still be layered, and this improves support for that)
  • Merge topic.js and forum.js in "bbPress Default" template pack to use the same engagements.js script, which simplifies localization & uses 1 less script between pages

This change puts the finishing touches on favs & subs consolidation for 2.6, and updates several related & surrounding functions to better support the necessary mark-up changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/template-functions.php

    r6549 r6551  
    284284 * @param string $location_callback Callback function that returns the
    285285 * @param int $priority
    286  * @see bbp_register_template_stack()
     286 * @return bool Whether stack was removed
    287287 */
    288288function bbp_deregister_template_stack( $location_callback = '', $priority = 10 ) {
     
    300300 * Call the functions added to the 'bbp_template_stack' filter hook, and return
    301301 * an array of the template locations.
    302  *
    303  * @see bbp_register_template_stack()
    304302 *
    305303 * @since 2.2.0 bbPress (r4323)
Note: See TracChangeset for help on using the changeset viewer.