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/bbpress.php

    r3927 r3928  
    533533        /** Default Theme *****************************************************/
    534534
    535         bbp_register_theme_package( new BBP_Theme_Compat( array(
     535        bbp_register_theme_package( array(
    536536            'id'      => 'default',
    537537            'name'    => __( 'bbPress Default', 'bbpress' ),
     
    539539            'dir'     => trailingslashit( $this->plugin_dir . 'bbp-theme-compat' ),
    540540            'url'     => trailingslashit( $this->plugin_url . 'bbp-theme-compat' )
    541         ) ) );
     541        ) );
    542542
    543543        /** Twenty Ten ********************************************************/
    544544
    545         bbp_register_theme_package( new BBP_Theme_Compat( array(
     545        bbp_register_theme_package( array(
    546546            'id'      => 'bbp-twentyten',
    547547            'name'    => __( 'Twenty Ten (bbPress)', 'bbpress' ),
     
    549549            'dir'     => trailingslashit( $this->themes_dir . 'bbp-twentyten' ),
    550550            'url'     => trailingslashit( $this->themes_url . 'bbp-twentyten' )
    551         ) ) );
     551        ) );
    552552    }
    553553
Note: See TracChangeset for help on using the changeset viewer.