Skip to:
Content

BuddyPress.org

Ticket #5212: theme-registration-001.patch

File theme-registration-001.patch, 581 bytes (added by DJPaul, 11 years ago)
  • bp-loader.php

    diff --git a/bp-loader.php b/bp-loader.php
    index 2cbe02c..cacb060 100644
    a b class BuddyPress { 
    530530         * @todo Move bp-default to wordpress.org/extend/themes and remove this
    531531         */
    532532        public function register_theme_directory() {
     533
     534                // Don't register the bundled version of BP-Default if the user already has it.
     535                foreach ( array_values( (array) $GLOBALS['wp_theme_directories'] ) as $directory ) {
     536                        if ( is_dir( $directory . '/bp-default' ) )
     537                                return;
     538                }
     539
    533540                register_theme_directory( $this->old_themes_dir );
    534541        }
    535542