Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/29/2020 09:43:16 PM (6 years ago)
Author:
imath
Message:

Core: fix PHP code standards & typos in inline comments

Props passoniate

Fixes #8225
Fixes #8226
Fixes #8227
Fixes #8228
Fixes #8229

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/deprecated/2.1.php

    r12401 r12547  
    88 */
    99
    10 // Exit if accessed directly
     10// Exit if accessed directly.
    1111defined( 'ABSPATH' ) || exit;
    1212
     
    190190        echo '<li class="bp-login no-arrow"><a href="' . wp_login_url() . '">' . __( 'Log In', 'buddypress' ) . '</a></li>';
    191191
    192         // Show "Sign Up" link if user registrations are allowed
     192        // Show "Sign Up" link if user registrations are allowed.
    193193        if ( bp_get_signup_allowed() ) {
    194194                echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page() . '">' . __( 'Sign Up', 'buddypress' ) . '</a></li>';
     
    214214        echo '<ul>';
    215215
    216         // Loop through each navigation item
     216        // Loop through each navigation item.
    217217        $counter = 0;
    218218        foreach( (array) $bp->bp_nav as $nav_item ) {
     
    327327        $min = bp_core_get_minified_asset_suffix();
    328328
    329         if ( file_exists( get_stylesheet_directory() . '/_inc/css/adminbar.css' ) ) { // Backwards compatibility
     329        if ( file_exists( get_stylesheet_directory() . '/_inc/css/adminbar.css' ) ) { // Backwards compatibility.
    330330                $stylesheet = get_stylesheet_directory_uri() . '/_inc/css/adminbar.css';
    331331        } else {
     
    356356        }
    357357
    358         // Only group admins and site admins can see this menu
     358        // Only group admins and site admins can see this menu.
    359359        if ( !current_user_can( 'edit_users' ) && !bp_current_user_can( 'bp_moderate' ) && !bp_is_item_admin() ) {
    360360                return false;
     
    407407function bp_adminbar_notifications_menu() {
    408408
    409         // Bail if notifications is not active
     409        // Bail if notifications is not active.
    410410        if ( ! bp_is_active( 'notifications' ) ) {
    411411                return false;
     
    424424        global $wpdb;
    425425
    426         // Only for multisite
     426        // Only for multisite.
    427427        if ( ! is_multisite() ) {
    428428                return false;
    429429        }
    430430
    431         // Hide on root blog
     431        // Hide on root blog.
    432432        if ( bp_is_root_blog( $wpdb->blogid ) || ! bp_is_active( 'blogs' ) ) {
    433433                return false;
     
    438438
    439439        if ( !empty( $authors ) ) {
    440                 // This is a blog, render a menu with links to all authors
     440                // This is a blog, render a menu with links to all authors.
    441441                echo '<li id="bp-adminbar-authors-menu"><a href="/">';
    442442                _e('Blog Authors', 'buddypress');
     
    479479function bp_members_adminbar_admin_menu() {
    480480
    481         // Only show if viewing a user
     481        // Only show if viewing a user.
    482482        if ( ! bp_displayed_user_id() ) {
    483483                return false;
    484484        }
    485485
    486         // Don't show this menu to non site admins or if you're viewing your own profile
     486        // Don't show this menu to non site admins or if you're viewing your own profile.
    487487        if ( !current_user_can( 'edit_users' ) || bp_is_my_profile() ) {
    488488                return false;
Note: See TracChangeset for help on using the changeset viewer.