Ticket #3148: 3148-2.diff
File 3148-2.diff, 17.1 KB (added by , 14 years ago) |
---|
-
bp-settings/bp-settings-loader.php
8 8 * @since BuddyPress {unknown} 9 9 */ 10 10 function BP_Settings_Component() { 11 $this->__construct(); 12 } 13 14 function __construct(){ 11 15 parent::start( 12 16 'settings', 13 17 __( 'Settings', 'buddypress' ), -
bp-friends/bp-friends-loader.php
17 17 * @since BuddyPress {unknown} 18 18 */ 19 19 function BP_Friends_Component() { 20 $this->__construct(); 21 } 22 23 function __construct(){ 20 24 parent::start( 21 25 'friends', 22 26 __( 'Friend Connections', 'buddypress' ), -
bp-friends/bp-friends-classes.php
14 14 var $friend; 15 15 16 16 function bp_friends_friendship( $id = null, $is_request = false, $populate_friend_details = true ) { 17 $this->__construct($id,$is_request,$populate_friend_details); 18 } 19 20 function __construct( $id = null, $is_request = false, $populate_friend_details = true ){ 17 21 $this->is_request = $is_request; 18 22 19 23 if ( $id ) { -
bp-groups/bp-groups-classes.php
15 15 var $total_member_count; 16 16 17 17 function bp_groups_group( $id = null ) { 18 $this->__construct($id); 19 } 20 21 function __construct( $id = null ){ 18 22 if ( $id ) { 19 23 $this->id = $id; 20 24 $this->populate(); … … 604 608 var $user; 605 609 606 610 function bp_groups_member( $user_id = 0, $group_id = 0, $id = false, $populate = true ) { 611 $this->__construct($user_id,$group_id,$id,$populate); 612 } 613 614 function __construct( $user_id = 0, $group_id = 0, $id = false, $populate = true ){ 607 615 if ( $user_id && $group_id && !$id ) { 608 616 $this->user_id = $user_id; 609 617 $this->group_id = $group_id; -
bp-groups/bp-groups-widgets.php
10 10 11 11 class BP_Groups_Widget extends WP_Widget { 12 12 function bp_groups_widget() { 13 $this->_construct(); 14 } 15 16 function __construct(){ 13 17 $widget_ops = array( 'description' => __( 'A dynamic list of recently active, popular, and newest groups', 'buddypress' ) ); 14 parent:: WP_Widget( false, __( 'Groups', 'buddypress' ), $widget_ops );18 parent::__construct( false, __( 'Groups', 'buddypress' ), $widget_ops ); 15 19 16 20 if ( is_active_widget( false, false, $this->id_base ) ) { 17 21 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) -
bp-groups/bp-groups-loader.php
20 20 * @since BuddyPress {unknown} 21 21 */ 22 22 function BP_Groups_Component() { 23 $this->__construct(); 24 } 25 26 function __construct(){ 23 27 parent::start( 24 28 'groups', 25 29 __( 'User Groups', 'buddypress' ), -
bp-members/bp-members-template.php
140 140 var $total_member_count; 141 141 142 142 function bp_core_members_template( $type, $page_number, $per_page, $max, $user_id, $search_terms, $include, $populate_extras, $exclude ) { 143 $this->__construct( $type, $page_number, $per_page, $max, $user_id, $search_terms, $include, $populate_extras, $exclude ); 144 } 145 146 function __construct( $type, $page_number, $per_page, $max, $user_id, $search_terms, $include, $populate_extras, $exclude ){ 143 147 global $bp; 144 148 145 149 $this->pag_page = !empty( $_REQUEST['upage'] ) ? intval( $_REQUEST['upage'] ) : (int)$page_number; -
bp-members/bp-members-loader.php
17 17 * @since BuddyPress {unknown} 18 18 */ 19 19 function BP_Members_Component() { 20 $this->__construct(); 21 } 22 23 function __construct(){ 20 24 parent::start( 21 25 'members', 22 26 __( 'Members', 'buddypress' ), -
bp-activity/bp-activity-classes.php
16 16 var $mptt_right; 17 17 18 18 function bp_activity_activity( $id = false ) { 19 $this->__construct($id); 20 } 21 22 function __construct( $id = false ){ 19 23 global $bp; 20 24 21 25 if ( !empty( $id ) ) { -
bp-activity/bp-activity-loader.php
17 17 * @since BuddyPress {unknown} 18 18 */ 19 19 function BP_Activity_Component() { 20 $this->__construct(); 21 } 22 23 function __construct(){ 20 24 parent::start( 21 25 'activity', 22 26 __( 'Activity Streams', 'buddypress' ), -
bp-core/bp-core-widgets.php
11 11 /*** MEMBERS WIDGET *****************/ 12 12 13 13 class BP_Core_Members_Widget extends WP_Widget { 14 14 15 function bp_core_members_widget() { 16 $this->__construct(); 17 } 18 19 function __construct(){ 15 20 $widget_ops = array( 'description' => __( 'A dynamic list of recently active, popular, and newest members', 'buddypress' ) ); 16 parent:: WP_Widget( false, $name = __( 'Members', 'buddypress' ), $widget_ops );21 parent::__construct( false, $name = __( 'Members', 'buddypress' ), $widget_ops ); 17 22 18 23 if ( is_active_widget( false, false, $this->id_base ) ) { 19 24 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) … … 134 139 /*** WHO'S ONLINE WIDGET *****************/ 135 140 136 141 class BP_Core_Whos_Online_Widget extends WP_Widget { 142 137 143 function bp_core_whos_online_widget() { 144 $this->__construct(); 145 } 146 147 function __construct(){ 138 148 $widget_ops = array( 'description' => __( 'Avatars of users who are currently online', 'buddypress' ) ); 139 parent:: WP_Widget( false, $name = __( "Who's Online Avatars", 'buddypress' ), $widget_ops );149 parent::__construct( false, $name = __( "Who's Online Avatars", 'buddypress' ), $widget_ops ); 140 150 } 141 151 142 152 function widget($args, $instance) { … … 198 208 /*** RECENTLY ACTIVE WIDGET *****************/ 199 209 200 210 class BP_Core_Recently_Active_Widget extends WP_Widget { 211 201 212 function bp_core_recently_active_widget() { 213 $this->__construct(); 214 } 215 216 function __construct(){ 202 217 $widget_ops = array( 'description' => __( 'Avatars of recently active members', 'buddypress' ) ); 203 parent:: WP_Widget( false, $name = __( 'Recently Active Member Avatars', 'buddypress' ), $widget_ops );218 parent::__construct( false, $name = __( 'Recently Active Member Avatars', 'buddypress' ), $widget_ops ); 204 219 } 205 220 206 221 function widget($args, $instance) { -
bp-core/bp-core-classes.php
31 31 var $total_groups; 32 32 33 33 function bp_core_user( $user_id, $populate_extras = false ) { 34 $this->__construct($user_id,$populate_extras); 35 } 36 37 function __construct( $user_id, $populate_extras = false ){ 34 38 if ( $user_id ) { 35 39 $this->id = $user_id; 36 40 $this->populate(); … … 446 450 var $is_new; 447 451 448 452 function bp_core_notification( $id = false ) { 453 $this->__construct($id); 454 } 455 456 function __construct( $id = false ){ 449 457 if ( $id ) { 450 458 $this->id = $id; 451 459 $this->populate(); … … 589 597 * @return bool False if not allowed 590 598 */ 591 599 function bp_button( $args = '' ) { 600 $this->__construct($args); 601 } 602 603 function __construct( $args = '' ){ 592 604 593 605 // Default arguments 594 606 $defaults = array( -
bp-core/admin/bp-core-update.php
10 10 var $setup_type; 11 11 12 12 function bp_core_setup_wizard() { 13 $this->__construct(); 14 } 15 16 function __construct(){ 13 17 // Look for current DB version 14 18 if ( !$this->database_version = get_site_option( 'bp-db-version' ) ) { 15 19 if ( $this->database_version = get_option( 'bp-db-version' ) ) { -
bp-core/bp-core-loader.php
26 26 class BP_Core extends BP_Component { 27 27 28 28 function BP_Core() { 29 $this->__construct(); 30 } 31 32 function __construct(){ 29 33 parent::start( 30 34 '_core', 31 35 __( 'BuddyPress Core', 'buddypress' ) -
bp-messages/bp-messages-template.php
20 20 var $pag_links; 21 21 22 22 function bp_messages_box_template( $user_id, $box, $per_page, $max, $type ) { 23 $this->__construct( $user_id, $box, $per_page, $max, $type ); 24 } 25 26 function __construct( $user_id, $box, $per_page, $max, $type ){ 23 27 $this->pag_page = isset( $_GET['mpage'] ) ? intval( $_GET['mpage'] ) : 1; 24 28 $this->pag_num = isset( $_GET['num'] ) ? intval( $_GET['num'] ) : $per_page; 25 29 … … 611 615 var $total_message_count; 612 616 613 617 function bp_messages_thread_template( $thread_id, $order ) { 618 $this->__construct( $thread_id, $order ); 619 } 620 function __construct( $thread_id, $order ){ 614 621 global $bp; 615 622 616 623 $this->thread = new BP_Messages_Thread( $thread_id, $order ); -
bp-messages/bp-messages-loader.php
17 17 * @since BuddyPress {unknown} 18 18 */ 19 19 function BP_Messages_Component() { 20 $this->__construct(); 21 } 22 23 function __construct(){ 20 24 parent::start( 21 25 'messages', 22 26 __( 'Private Messages', 'buddypress' ), -
bp-messages/bp-messages-classes.php
9 9 var $unread_count; 10 10 11 11 function bp_messages_thread ( $thread_id = false, $order = 'ASC' ) { 12 $this->__construct( $thread_id, $order); 13 } 14 15 function __construct( $thread_id = false, $order = 'ASC' ){ 12 16 if ( $thread_id ) 13 17 $this->populate( $thread_id, $order ); 14 18 } … … 245 249 var $recipients = false; 246 250 247 251 function bp_messages_message( $id = null ) { 252 $this->__construct( $id ); 253 } 254 255 function __construct( $id = null ){ 248 256 global $bp; 249 257 250 258 $this->date_sent = bp_core_current_time(); … … 362 370 var $is_active; 363 371 364 372 function bp_messages_notice( $id = null ) { 373 $this->__construct($id); 374 } 375 376 function __construct( $id = null ){ 365 377 if ( $id ) { 366 378 $this->id = $id; 367 379 $this->populate($id); -
bp-xprofile/bp-xprofile-template.php
18 18 var $user_id; 19 19 20 20 function bp_xprofile_data_template( $user_id, $profile_group_id, $hide_empty_groups = false, $fetch_fields = false, $fetch_field_data = false, $exclude_groups = false, $exclude_fields = false ) { 21 $this->__construct( $user_id, $profile_group_id, $hide_empty_groups, $fetch_fields, $fetch_field_data, $exclude_groups, $exclude_fields ); 22 } 23 24 function __construct( $user_id, $profile_group_id, $hide_empty_groups = false, $fetch_fields = false, $fetch_field_data = false, $exclude_groups = false, $exclude_fields = false ){ 21 25 $this->groups = BP_XProfile_Group::get( array( 22 26 'profile_group_id' => $profile_group_id, 23 27 'user_id' => $user_id, -
bp-xprofile/bp-xprofile-loader.php
18 18 * @since BuddyPress {unknown} 19 19 */ 20 20 function BP_XProfile_Component() { 21 $this->__construct(); 22 } 23 24 function __construct(){ 21 25 parent::start( 22 26 'xprofile', 23 27 __( 'Extended Profiles', 'buddypress' ), -
bp-forums/bp-forums-bbpress-sa.php
137 137 var $db_servers = array(); 138 138 139 139 function BPDB( $dbuser, $dbpassword, $dbname, $dbhost ) { 140 parent::WPDB( $dbuser, $dbpassword, $dbname, $dbhost ); 140 $this->__construct( $dbuser, $dbpassword, $dbname, $dbhost ); 141 } 142 143 function __construct( $dbuser, $dbpassword, $dbname, $dbhost ){ 144 145 parent::__construct( $dbuser, $dbpassword, $dbname, $dbhost ); 141 146 142 147 $args = func_get_args(); 143 148 $args = call_user_func_array( array( &$this, '_init' ), $args ); -
bp-forums/bp-forums-loader.php
17 17 * @since BuddyPress {unknown} 18 18 */ 19 19 function BP_Forums_Component() { 20 $this->__construct(); 21 } 22 23 function __construct(){ 20 24 parent::start( 21 25 'forums', 22 26 __( 'Discussion Forums', 'buddypress' ), -
bp-forums/bp-forums-template.php
69 69 var $order; 70 70 71 71 function BP_Forums_Template_Forum( $type, $forum_id, $user_id, $page, $per_page, $max, $no_stickies, $search_terms ) { 72 $this->__construct( $type, $forum_id, $user_id, $page, $per_page, $max, $no_stickies, $search_terms ); 73 } 74 75 function __construct( $type, $forum_id, $user_id, $page, $per_page, $max, $no_stickies, $search_terms ) { 72 76 global $bp; 73 77 74 78 $this->pag_page = isset( $_REQUEST['p'] ) ? intval( $_REQUEST['p'] ) : $page; … … 789 793 var $order; 790 794 791 795 function BP_Forums_Template_Topic( $topic_id, $per_page, $max, $order ) { 796 $this->__construct( $topic_id, $per_page, $max, $order ); 797 } 798 799 function __construct( $topic_id, $per_page, $max, $order ){ 792 800 global $bp, $current_user, $forum_template; 793 801 794 802 $this->pag_page = isset( $_REQUEST['topic_page'] ) ? intval( $_REQUEST['topic_page'] ) : 1; -
bp-blogs/bp-blogs-template.php
66 66 var $total_blog_count; 67 67 68 68 function bp_blogs_template( $type, $page, $per_page, $max, $user_id, $search_terms ) { 69 $this->__construct( $type, $page, $per_page, $max, $user_id, $search_terms ); 70 } 71 72 function __construct( $type, $page, $per_page, $max, $user_id, $search_terms ){ 69 73 global $bp; 70 74 71 75 $this->pag_page = isset( $_REQUEST['bpage'] ) ? intval( $_REQUEST['bpage'] ) : $page; -
bp-blogs/bp-blogs-widgets.php
14 14 add_action( 'bp_register_widgets', 'bp_blogs_register_widgets' ); 15 15 16 16 class BP_Blogs_Recent_Posts_Widget extends WP_Widget { 17 17 18 function bp_blogs_recent_posts_widget() { 18 parent::WP_Widget( false, $name = __( 'Recent Site Wide Posts', 'buddypress' ) ); 19 $this->__construct(); 20 } 21 22 function __construct(){ 23 parent::__construct( false, $name = __( 'Recent Site Wide Posts', 'buddypress' ) ); 19 24 } 20 25 21 26 function widget($args, $instance) { -
bp-blogs/bp-blogs-loader.php
17 17 * @since BuddyPress {unknown} 18 18 */ 19 19 function BP_Blogs_Component() { 20 $this->__construct(); 21 } 22 23 function __construct(){ 20 24 parent::start( 21 25 'blogs', 22 26 __( 'Blogs Streams', 'buddypress' ), -
bp-blogs/bp-blogs-classes.php
6 6 var $blog_id; 7 7 8 8 function bp_blogs_blog( $id = null ) { 9 $this->__construct( $id ); 10 } 11 12 function __construct( $id = null ){ 9 13 global $bp, $wpdb; 10 14 11 15 $user_id = $bp->displayed_user->id;