Changes between Version 1 and Version 2 of Ticket #7935, comment 6
- Timestamp:
- 09/11/2018 01:53:37 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7935, comment 6
v1 v2 6 6 2. Due to the fact that the slugs can be modified by a developer, I'm now using `$parent_slug->css_id` since that uses the component ID for the most part - https://buddypress.trac.wordpress.org/browser/tags/3.1.0/src/bp-core/bp-core-buddybar.php?marks=139-141,147#L113. XProfile component sets `link_css_id` as the component ID - https://buddypress.trac.wordpress.org/browser/tags/3.1.0/src/bp-xprofile/classes/class-bp-xprofile-component.php?marks=257#L235. 7 7 8 It might make sense to set the `link_css_id` for all components to the component ID just to be safe. For example, for the Settings component, we would add the `link_css_id` parameter directly after this line - https://buddypress.trac.wordpress.org/browser/tags/3.1.0/src/bp-settings/classes/class-bp-settings-component.php?marks=146#L124 ( Update- looks like the Settings component is the only one that doesn't set the `'link_css_id'` parameter, so I've added it to `02.patch`).8 It might make sense to set the `link_css_id` for all components to the component ID just to be safe. For example, for the Settings component, we would add the `link_css_id` parameter directly after this line - https://buddypress.trac.wordpress.org/browser/tags/3.1.0/src/bp-settings/classes/class-bp-settings-component.php?marks=146#L124 (**Update** - looks like the Settings component is the only one that doesn't set the `'link_css_id'` parameter, so I've added it to `02.patch`). 9 9 10 10 Let me know what you think.