Skip to:
Content

BuddyPress.org

Changeset 5930


Ignore:
Timestamp:
03/16/2012 02:46:06 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Remove all PHP4 compat constructors. Props cnorris23. Fixes #4065.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-classes.php

    r5729 r5930  
    2323        var $blog_id;
    2424
    25         function bp_blogs_blog( $id = null ) {
    26                 $this->__construct( $id );
    27         }
    28 
    2925        function __construct( $id = null ) {
    3026                if ( !empty( $id ) ) {
  • trunk/bp-blogs/bp-blogs-widgets.php

    r5686 r5930  
    2121
    2222class BP_Blogs_Recent_Posts_Widget extends WP_Widget {
    23 
    24         function bp_blogs_recent_posts_widget() {
    25                 $this->__construct();
    26         }
    2723
    2824        function __construct() {
  • trunk/bp-core/bp-core-widgets.php

    r5751 r5930  
    1414
    1515class BP_Core_Members_Widget extends WP_Widget {
    16 
    17         function bp_core_members_widget() {
    18                 $this->__construct();
    19         }
    2016
    2117        function __construct() {
    … …  
    150146class BP_Core_Whos_Online_Widget extends WP_Widget {
    151147
    152         function bp_core_whos_online_widget() {
    153                 $this->__construct();
    154         }
    155 
    156148        function __construct() {
    157149                $widget_ops = array( 'description' => __( 'Avatars of users who are currently online', 'buddypress' ) );
    … …  
    217209
    218210class BP_Core_Recently_Active_Widget extends WP_Widget {
    219 
    220         function bp_core_recently_active_widget() {
    221                 $this->__construct();
    222         }
    223211
    224212        function __construct() {
  • trunk/bp-forums/bp-forums-bbpress-sa.php

    r5885 r5930  
    144144        class BPDB extends WPDB {
    145145                var $db_servers = array();
    146 
    147                 function BPDB( $dbuser, $dbpassword, $dbname, $dbhost ) {
    148                         $this->__construct( $dbuser, $dbpassword, $dbname, $dbhost );
    149                 }
    150146
    151147                function __construct( $dbuser, $dbpassword, $dbname, $dbhost ) {
  • trunk/bp-forums/bp-forums-template.php

    r5927 r5930  
    993993        var $order;
    994994
    995         function BP_Forums_Template_Topic( $topic_id, $per_page, $max, $order ) {
    996                 $this->__construct( $topic_id, $per_page, $max, $order );
    997         }
    998 
    999995        function __construct( $topic_id, $per_page, $max, $order ) {
    1000996                global $bp, $current_user, $forum_template;
  • trunk/bp-groups/bp-groups-template.php

    r5927 r5930  
    16851685        var $total_group_count;
    16861686
    1687         function bp_groups_group_members_template( $group_id, $per_page, $max, $exclude_admins_mods, $exclude_banned, $exclude ) {
    1688                 $this->__construct( $group_id, $per_page, $max, $exclude_admins_mods, $exclude_banned, $exclude );
    1689         }
    1690 
    16911687        function __construct( $group_id, $per_page, $max, $exclude_admins_mods, $exclude_banned, $exclude ) {
    16921688
    … …  
    24082404        var $total_request_count;
    24092405
    2410         function bp_groups_membership_requests_template( $group_id, $per_page, $max ) {
    2411                 $this->__construct( $group_id, $per_page, $max );
    2412         }
    2413 
    2414 
    24152406        function __construct( $group_id, $per_page, $max ) {
    24162407
    … …  
    25782569        var $pag_links;
    25792570        var $total_invite_count;
    2580 
    2581         function bp_groups_invite_template( $user_id, $group_id ) {
    2582                 $this->__construct( $user_id, $group_id );
    2583         }
    25842571
    25852572        function __construct( $user_id, $group_id ) {
Note: See TracChangeset for help on using the changeset viewer.