Ticket #3578: 3578-automatic.patch
File 3578-automatic.patch, 1.1 KB (added by , 13 years ago) |
---|
-
bp-core/bp-core-component.php
class BP_Component { 107 107 108 108 $defaults = array( 109 109 'slug' => $this->id, 110 'root_slug' => '',111 110 'has_directory' => false, 112 111 'notification_callback' => '', 113 112 'search_string' => '', … … class BP_Component { 119 118 $this->slug = apply_filters( 'bp_' . $this->id . '_slug', $r['slug'] ); 120 119 121 120 // Slug used for root directory 122 $this->root_slug = apply_filters( 'bp_' . $this->id . '_root_slug', $r['root_slug'] ); 121 $root_slug = isset( $bp->pages->{$this->id}->slug ) ? $bp->pages->{$this->id}->slug : ''; 122 $this->root_slug = apply_filters( 'bp_' . $this->id . '_root_slug', $root_slug ); 123 123 124 124 // Does this component have a top-level directory? 125 125 $this->has_directory = apply_filters( 'bp_' . $this->id . '_has_directory', $r['has_directory'] );