Skip to:
Content

BuddyPress.org

Ticket #5223: 5223.patch

File 5223.patch, 1.2 KB (added by boonebgorges, 11 years ago)
  • bp-core/bp-core-functions.php

    diff --git bp-core/bp-core-functions.php bp-core/bp-core-functions.php
    index ffe015e..3a26fae 100644
    function bp_core_add_illegal_names() { 
    532532        update_site_option( 'illegal_names', get_site_option( 'illegal_names' ), array() );
    533533}
    534534
     535/**
     536 * Determine whether BuddyPress should register the bp-themes directory.
     537 *
     538 * @since BuddyPress (1.9.0)
     539 *
     540 * @return bool True if bp-themes should be registered, false otherwise.
     541 */
     542function bp_do_register_theme_directory() {
     543        $register = 'bp-default' === get_stylesheet() || 'bp-default' === get_template();
     544        return apply_filters( 'bp_do_register_theme_directory', $register );
     545}
     546
    535547/** URI ***********************************************************************/
    536548
    537549/**
  • bp-loader.php

    diff --git bp-loader.php bp-loader.php
    index 2cbe02c..754c3ef 100644
    class BuddyPress { 
    530530         * @todo Move bp-default to wordpress.org/extend/themes and remove this
    531531         */
    532532        public function register_theme_directory() {
     533                if ( ! bp_do_register_theme_directory() ) {
     534                        return;
     535                }
     536
    533537                register_theme_directory( $this->old_themes_dir );
    534538        }
    535539