Skip to:
Content

BuddyPress.org

Ticket #7551: add-nouveau-to-theme-package-array.patch

File add-nouveau-to-theme-package-array.patch, 794 bytes (added by hnla, 8 years ago)

Add Nouveau package details to the 'register_theme_packages()' function. Enables selection of package in BP settings.

  • src/class-buddypress.php

     
    712712                        'url'     => trailingslashit( $this->themes_url . '/bp-legacy' )
    713713                ) );
    714714
     715                bp_register_theme_package( array(
     716                        'id'      => 'nouveau',
     717                        'name'    => __( 'BuddyPress Nouveau', 'buddypress' ),
     718                        'version' => bp_get_version(),
     719                        'dir'     => trailingslashit( $this->themes_dir . '/bp-nouveau' ),
     720                        'url'     => trailingslashit( $this->themes_url . '/bp-nouveau' )
     721                ) );
     722
    715723                // Register the basic theme stack. This is really dope.
    716724                bp_register_template_stack( 'get_stylesheet_directory', 10 );
    717725                bp_register_template_stack( 'get_template_directory',   12 );