Skip to:
Content

bbPress.org

Changeset 4106


Ignore:
Timestamp:
07/22/2012 10:23:04 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat:

  • Fix logic on theme compat override.
  • Props DJPaul.
  • Fixes #1912.
  • For 2.2 branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-theme-compatibility.php

    r3983 r4106  
    281281    $bbp = bbpress();
    282282
    283     // Only override if the flag is set and notpreviously registered
    284     if ( ! empty( $bbp->theme_compat->packages[$theme->id] ) || ( true === $override ) ) {
     283    // Only override if the flag is set and not previously registered
     284    if ( empty( $bbp->theme_compat->packages[$theme->id] ) || ( true === $override ) ) {
    285285        $bbp->theme_compat->packages[$theme->id] = $theme;
    286286    }
Note: See TracChangeset for help on using the changeset viewer.