Skip to:
Content

bbPress.org

Changeset 4107


Ignore:
Timestamp:
07/22/2012 10:24:33 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Theme Compat:

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

Legend:

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

    r3983 r4107  
    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.