Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/18/2011 11:19:56 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Basic WordPress 3.0 compat in bbp_get_title for taxonomy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-general-functions.php

    r2891 r2916  
    876876    } elseif ( is_tax( $bbp->topic_tag_id ) ) {
    877877
    878         $term  = get_queried_object();
    879         $title = sprintf( __( 'Topic Tag: %s', 'bbpress' ), $term->name );
     878        if ( function_exists( 'get_queried_object' ) ) {
     879            $term  = get_queried_object();
     880            $title = sprintf( __( 'Topic Tag: %s', 'bbpress' ), $term->name );
     881        }
    880882
    881883    // Views
Note: See TracChangeset for help on using the changeset viewer.