Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/31/2012 05:02:02 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Theme Compatibility:

  • Clean up bbpress-functions.php for Twenty Ten and Default theme packages.
  • Simplify bbp_register_theme_package() to accept an array or a BBP_Theme_Compat object.
  • Update bbPress::register_theme_packages() to use new style above.
File:
1 edited

Legend:

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

    r3927 r3928  
    268268 * @param array $theme
    269269 */
    270 function bbp_register_theme_package( $theme = '', $override = true ) {
    271 
    272     // Bail if no name or object passed is not a theme compat theme
     270function bbp_register_theme_package( $theme = array(), $override = true ) {
     271
     272    // Create new BBP_Theme_Compat object from the $theme array
     273    if ( is_array( $theme ) )
     274        $theme = new BBP_Theme_Compat( $theme );
     275
     276    // Bail if $theme isn't a proper object
    273277    if ( ! is_a( $theme, 'BBP_Theme_Compat' ) )
    274278        return;
Note: See TracChangeset for help on using the changeset viewer.