Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/26/2012 07:51:14 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Remove slug variables from bbPress class and rely on options and object cache going forward.

  • Net performance and memory usage win
  • Removes class variables that are already in object cache
  • Reduces code duplication
  • Fixes #1760
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-forum-template.php

    r3758 r3760  
    344344
    345345            // Set root text to page title
    346             $page = bbp_get_page_by_path( bbpress()->root_slug );
     346            $page = bbp_get_page_by_path( bbp_get_root_slug() );
    347347            if ( !empty( $page ) ) {
    348348                $title = get_the_title( $page->ID );
Note: See TracChangeset for help on using the changeset viewer.