Skip to:
Content

BuddyPress.org

Ticket #3578: 3578-defaults.patch

File 3578-defaults.patch, 761 bytes (added by boonebgorges, 13 years ago)
  • bp-core/bp-core-component.php

    class BP_Component { 
    105105
    106106                /** Slugs *************************************************************/
    107107
     108                // The default value for 'root_slug' should be retrieved from bp-pages
     109                $root_slug_default = isset( $bp->pages->{$this->id}->slug ) ? $bp->pages->{$this->id}->slug : '';
     110
    108111                $defaults = array(
    109112                        'slug'                  => $this->id,
    110                         'root_slug'             => '',
     113                        'root_slug'             => $root_slug_default,
    111114                        'has_directory'         => false,
    112115                        'notification_callback' => '',
    113116                        'search_string'         => '',