Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/18/2020 11:32:41 AM (2 months ago)
Author:
imath
Message:

Core/Nouveau: fix PHP Code standards in inline comments

Props passoniate

See #8213

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress-functions.php

    r12397 r12524  
    171171        add_action( 'bp_actions', array( $this, 'neutralize_core_template_notices' ), 6 );
    172172
    173         // Scripts
    174         add_action( 'bp_enqueue_scripts', array( $this, 'register_scripts' ), 2 ); // Register theme JS
     173        // Scripts.
     174        add_action( 'bp_enqueue_scripts', array( $this, 'register_scripts' ), 2 ); // Register theme JS.
    175175        remove_action( 'bp_enqueue_scripts', 'bp_core_confirmation_js' );
    176         add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_styles' ) ); // Enqueue theme CSS
    177         add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); // Enqueue theme JS
    178         add_filter( 'bp_enqueue_scripts', array( $this, 'localize_scripts' ) ); // Enqueue theme script localization
    179 
    180         // Body no-js class
     176        add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_styles' ) ); // Enqueue theme CSS.
     177        add_action( 'bp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); // Enqueue theme JS.
     178        add_filter( 'bp_enqueue_scripts', array( $this, 'localize_scripts' ) ); // Enqueue theme script localization.
     179
     180        // Body no-js class.
    181181        add_filter( 'body_class', array( $this, 'add_nojs_body_class' ), 20, 1 );
    182182
    183         // Ajax querystring
     183        // Ajax querystring.
    184184        add_filter( 'bp_ajax_querystring', 'bp_nouveau_ajax_querystring', 10, 2 );
    185185
    186         // Register directory nav items
     186        // Register directory nav items.
    187187        add_action( 'bp_screens', array( $this, 'setup_directory_nav' ), 15 );
    188188
    189         // Register the Default front pages Dynamic Sidebars
     189        // Register the Default front pages Dynamic Sidebars.
    190190        add_action( 'widgets_init', 'bp_nouveau_register_sidebars', 11 );
    191191
    192         // Register the Primary Object nav widget
     192        // Register the Primary Object nav widget.
    193193        add_action( 'bp_widgets_init', array( 'BP_Nouveau_Object_Nav_Widget', 'register_widget' ) );
    194194
    195         // Set the BP Uri for the Ajax customizer preview
     195        // Set the BP Uri for the Ajax customizer preview.
    196196        add_filter( 'bp_uri', array( $this, 'customizer_set_uri' ), 10, 1 );
    197197
     
    318318        ) );
    319319
    320         // Bail if no scripts
     320        // Bail if no scripts.
    321321        if ( empty( $scripts ) ) {
    322322            return;
     
    431431        );
    432432
    433         // If the Object/Item nav are in the sidebar
     433        // If the Object/Item nav are in the sidebar.
    434434        if ( bp_nouveau_is_object_nav_in_sidebar() ) {
    435435            $params['object_nav_parent'] = '.buddypress_object_nav';
     
    460460        }
    461461
    462         // Add components & nonces
     462        // Add components & nonces.
    463463        $params['objects'] = $supported_objects;
    464464        $params['nonces']  = $object_nonces;
    465465
    466         // Used to transport the settings inside the Ajax requests
     466        // Used to transport the settings inside the Ajax requests.
    467467        if ( is_customize_preview() ) {
    468468            $params['customizer_settings'] = bp_nouveau_get_temporary_setting( 'any' );
     
    603603            }
    604604
    605             // Define the primary nav for the current component's directory
     605            // Define the primary nav for the current component's directory.
    606606            $this->directory_nav->add_nav( $nav_item );
    607607        }
Note: See TracChangeset for help on using the changeset viewer.