Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/22/2011 07:32:48 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Prebeta code clean-up - see #3367:

  • Remove PHP4 constructors on loader classes
  • Remove class functions that start with underscores
  • Use require() rather than require_once() where appropriate
  • Remove background color on messages activity time
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-loader.php

    r4586 r4775  
    1818         * @since BuddyPress {unknown}
    1919         */
    20         function BP_XProfile_Component() {
    21                 $this->__construct();
    22         }
    23 
    2420        function __construct() {
    2521                parent::start(
     
    3329         * Include files
    3430         */
    35         function _includes() {
     31        function includes() {
    3632                $includes = array(
    3733                        'cssjs',
     
    5046                        $includes[] = 'admin';
    5147
    52                 parent::_includes( $includes );
     48                parent::includes( $includes );
    5349        }
    5450
     
    6258         * @global obj $bp
    6359         */
    64         function _setup_globals() {
     60        function setup_globals() {
    6561                global $bp;
    6662
     
    10096                );
    10197
    102                 parent::_setup_globals( $globals );
     98                parent::setup_globals( $globals );
    10399        }
    104100
     
    108104         * @global obj $bp
    109105         */
    110         function _setup_nav() {
     106        function setup_nav() {
    111107                global $bp;
    112108
     
    153149                );
    154150
    155                 parent::_setup_nav( $main_nav, $sub_nav );
     151                parent::setup_nav( $main_nav, $sub_nav );
    156152        }
    157153
     
    161157         * @global obj $bp
    162158         */
    163         function _setup_admin_bar() {
     159        function setup_admin_bar() {
    164160                global $bp;
    165161
     
    204200                }
    205201
    206                 parent::_setup_admin_bar( $wp_admin_nav );
     202                parent::setup_admin_bar( $wp_admin_nav );
    207203        }
    208204
     
    212208         * @global obj $bp
    213209         */
    214         function _setup_title() {
     210        function setup_title() {
    215211                global $bp;
    216212
     
    227223                }
    228224
    229                 parent::_setup_title();
     225                parent::setup_title();
    230226        }
    231227}
Note: See TracChangeset for help on using the changeset viewer.