Changeset 7465
- Timestamp:
- 10/23/2013 02:43:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-component.php
r7454 r7465 172 172 * value is generally unused if the component has a root 173 173 * directory (the slug will be overridden by the post_name of 174 * the directory page). 174 * the directory page). Default: the slug of the directory 175 * page if one is found, otherwise an empty string. 175 176 * @type bool $has_directory Set to true if the component requires 176 177 * an associated WordPress page. … … 187 188 /** Slugs *************************************************************/ 188 189 190 // If a WP directory page exists for the component, it should 191 // be the default value of 'root_slug'. 192 $default_root_slug = isset( buddypress()->pages->{$this->id}->slug ) ? buddypress()->pages->{$this->id}->slug : ''; 193 189 194 $r = wp_parse_args( $args, array( 190 195 'slug' => $this->id, 191 'root_slug' => '',196 'root_slug' => $default_root_slug, 192 197 'has_directory' => false, 193 198 'notification_callback' => '',
Note: See TracChangeset
for help on using the changeset viewer.