Skip to:
Content

BuddyPress.org

Ticket #9111: 9111.patch

File 9111.patch, 3.1 KB (added by emaralive, 12 months ago)
  • src/bp-core/admin/css/hello-rtl.css

    diff --git src/bp-core/admin/css/hello-rtl.css src/bp-core/admin/css/hello-rtl.css
    index 2fc51e543..0458120ba 100644
    div.dashicons.big { 
    293293        .bp-hello-content p {
    294294                font-size: 14px;
    295295        }
     296
     297        .bp-hello-content p.has-white-color.has-text-color.has-background.has-medium-font-size {
     298                color: white;
     299                padding: 1.25em 2.375em !important;
     300        }
     301
     302        .bp-hello-content p a mark.has-inline-color.has-white-color {
     303                color: white;
     304        }
     305
     306        .bp-hello-content p a {
     307                text-decoration: none;
     308        }
     309
     310        .bp-hello-content p a:hover {
     311                color: #dd823b;
     312                text-decoration: underline;
     313        }
     314
     315        .bp-hello-content .wp-container-core-buttons-is-layout-1.wp-container-core-buttons-is-layout-1 {
     316                display: flex;
     317                justify-content: center;
     318        }
     319
     320        .bp-hello-content .has-vivid-red-background-color {
     321                background-color: #be3631
     322        }
     323
     324        .bp-hello-content .wp-block-button.is-style-fill a:hover {
     325                text-decoration: underline;
     326        }
     327
     328        .bp-hello-content .wp-block-button__link {
     329                color: #fff;
     330                box-shadow: none;
     331                text-decoration: none;
     332                padding: calc(.667em + 2px) calc(1.333em + 2px);
     333                font-size: 1.125em;
     334        }
    296335}
    297336
    298337/**
  • src/bp-core/admin/css/hello.css

    diff --git src/bp-core/admin/css/hello.css src/bp-core/admin/css/hello.css
    index d99c28a73..2265748b3 100644
    div.dashicons.big { 
    293293        .bp-hello-content p {
    294294                font-size: 14px;
    295295        }
     296
     297        .bp-hello-content p.has-white-color.has-text-color.has-background.has-medium-font-size {
     298                color: white;
     299                padding: 1.25em 2.375em !important;
     300        }
     301
     302        .bp-hello-content p a mark.has-inline-color.has-white-color {
     303                color: white;
     304        }
     305
     306        .bp-hello-content p a {
     307                text-decoration: none;
     308        }
     309
     310        .bp-hello-content p a:hover {
     311                color: #dd823b;
     312                text-decoration: underline;
     313        }
     314
     315        .bp-hello-content .wp-container-core-buttons-is-layout-1.wp-container-core-buttons-is-layout-1 {
     316                display: flex;
     317                justify-content: center;
     318        }
     319
     320        .bp-hello-content .has-vivid-red-background-color {
     321                background-color: #be3631
     322        }
     323
     324        .bp-hello-content .wp-block-button.is-style-fill a:hover {
     325                text-decoration: underline;
     326        }
     327
     328        .bp-hello-content .wp-block-button__link {
     329                color: #fff;
     330                box-shadow: none;
     331                text-decoration: none;
     332                padding: calc(.667em + 2px) calc(1.333em + 2px);
     333                font-size: 1.125em;
     334        }
    296335}
    297336
    298337/**
  • src/bp-core/classes/class-bp-admin.php

    diff --git src/bp-core/classes/class-bp-admin.php src/bp-core/classes/class-bp-admin.php
    index 4a1fc8750..9599e0fc7 100644
    class BP_Admin { 
    185185                add_action( 'bp_register_admin_settings', array( $this, 'register_admin_settings' ) );
    186186
    187187                // Add a link to BuddyPress Hello in the admin bar.
    188                 add_action( 'admin_bar_menu', array( $this, 'admin_bar_about_link' ), 100 );
     188                if ( bp_current_user_can( 'bp_moderate' ) ) {
     189                        add_action( 'admin_bar_menu', array( $this, 'admin_bar_about_link' ), 100 );
     190                }
    189191
    190192                // Add a description of BuddyPress tools in the available tools page.
    191193                if ( bp_current_user_can( 'bp_moderate' ) ) {