Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/23/2021 12:12:09 AM (5 years ago)
Author:
espellcaste
Message:

Making PHPDoc Improvements to several files.

See #8553

File:
1 edited

Legend:

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

    r13087 r13089  
    44 *
    55 * @since 3.0.0
     6 * @package BuddyPress
    67 * @version 10.0.0
    78 *
    … …  
    3334 */
    3435class BP_Nouveau extends BP_Theme_Compat {
     36
    3537        /**
    3638         * Instance of this class.
     39         *
     40         * @var BP_Nouveau|null
    3741         */
    3842        protected static $instance = null;
    … …  
    4246         *
    4347         * @since 3.0.0
     48         *
     49         * @return BP_Nouveau
    4450         */
    4551        public static function get_instance() {
    … …  
    134140         */
    135141        protected function setup_support() {
    136                 $width         = 1300;
    137                 $top_offset    = 150;
     142                $width      = 1300;
     143                $top_offset = 150;
    138144
    139145                /** This filter is documented in bp-core/bp-core-avatars.php. */
    … …  
    339345                 * @param array $value Array of scripts to register.
    340346                 */
    341                 $scripts = apply_filters( 'bp_nouveau_register_scripts', array(
    342                         'bp-nouveau' => array(
    343                                 'file'         => 'js/buddypress-nouveau%s.js',
    344                                 'dependencies' => $dependencies,
    345                                 'version'      => $this->version,
    346                                 'footer'       => true,
    347                         ),
    348                 ) );
     347                $scripts = apply_filters(
     348                        'bp_nouveau_register_scripts',
     349                        array(
     350                                'bp-nouveau' => array(
     351                                        'file'         => 'js/buddypress-nouveau%s.js',
     352                                        'dependencies' => $dependencies,
     353                                        'version'      => $this->version,
     354                                        'footer'       => true,
     355                                ),
     356                        )
     357                );
    349358
    350359                // Bail if no scripts.
    … …  
    654663         * @since 3.0.0
    655664         *
    656          * @param  string $path the BP Uri.
    657          * @return string       the BP Uri.
     665         * @param  string $path The BP Uri.
     666         * @return string       The BP Uri.
    658667         */
    659668        public function customizer_set_uri( $path ) {
    … …  
    680689                return $path;
    681690        }
     691
    682692        /**
    683693         * Modify "registration disabled" message in Nouveau template pack.
    … …  
    690700         * @return array $messages
    691701         */
    692         function filter_registration_messages( $messages ) {
     702        public function filter_registration_messages( $messages ) {
    693703                // Change the "registration is disabled" message.
    694704                $disallowed_message = bp_members_invitations_get_modified_registration_disabled_message();
Note: See TracChangeset for help on using the changeset viewer.