-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use only one site-health-info panel to list BP Settings & Constants #245
Conversation
@@ -1140,6 +1146,20 @@ function bp_core_admin_debug_information_add_help_tab() { | |||
if ( document.readyState === "complete" ) { | |||
bpHelpSidebarLinks = document.querySelector( \'.bp-help-sidebar-links\' ).closest( \'p\') | |||
bpHelpSidebarLinks.style.display = \'none\'; | |||
|
|||
document.querySelectorAll( \'#health-check-accordion-block-buddypress tr > td\' ).forEach( function( td, i ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a nice hack! I initially looked for a way to do this without using js and could not find it.
'value' => defined( 'BP_SEARCH_SLUG' ) ? BP_SEARCH_SLUG : __( 'Undefined', 'buddypress' ), | ||
'debug' => defined( 'BP_SEARCH_SLUG' ) ? BP_SEARCH_SLUG : 'undefined', | ||
), | ||
$bp_settings, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember very well, but I might have added these exclamation marks because of the way these options are formulated / handled inside BuddyPress. Without the exclamation mark for example: bp-disable-avatar-uploads: Yes
would mean avatar uploads are disabled but I don't think it's the case. I'll look at i more closely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we save the "Yes" string in the database? If not, we should add the actual value for the copied version.
These fields are just used to separate Settings and Constants into the BuddyPress site-heath-info panel.
OK, I took a look and if one were to do a copy and paste into a text file the results for 2 panels makes more sense and aesthetically more pleasing (clear distinction as to the identification of BP constants). See the below between Single Panel vs Double Panel: Single Panel
Double Panel
|
Thanks for your feedback @emaralive. Let's leave it the way it is then 👍. We'll see with user feedbacks if I was worrying for nothing 😉. |
Use only one site-health-info panel to list BP Settings & Constants
Trac ticket: https://buddypress.trac.wordpress.org/ticket/9101
This Pull Request is for code review only. Please keep all other discussion in the BuddyPress Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the WordPress Core Handbook for more details.