Changeset 1705
- Timestamp:
- 08/26/2009 04:21:57 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
bp-activity.php (modified) (4 diffs)
-
bp-blogs.php (modified) (1 diff)
-
bp-forums.php (modified) (1 diff)
-
bp-friends.php (modified) (1 diff)
-
bp-groups.php (modified) (1 diff)
-
bp-messages.php (modified) (2 diffs)
-
bp-wire.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r1691 r1705 1 1 <?php 2 2 3 define ( 'BP_ACTIVITY_DB_VERSION', '17 00' );3 define ( 'BP_ACTIVITY_DB_VERSION', '1721' ); 4 4 5 5 /* Define the slug for the component */ … … 46 46 $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->base_prefix}bp_activity_sitewide" ); 47 47 48 /* Rename the old user activity cached table */ 49 $wpdb->query( "RENAME TABLE {$wpdb->base_prefix}bp_activity_user_activity_cached TO {$bp->activity->table_name}" ); 50 48 51 update_site_option( 'bp-activity-db-version', BP_ACTIVITY_DB_VERSION ); 49 52 } … … 52 55 global $bp, $wpdb, $current_blog; 53 56 54 $bp->activity->table_name = $wpdb->base_prefix . 'bp_activity_user_activity_cached'; 57 /* Internal identifier */ 58 $bp->activity->id = 'activity'; 59 60 $bp->activity->table_name = $wpdb->base_prefix . 'bp_activity'; 55 61 $bp->activity->slug = BP_ACTIVITY_SLUG; 56 57 if ( is_site_admin() && get_site_option( 'bp-activity-db-version' ) < BP_ACTIVITY_DB_VERSION ) 62 } 63 add_action( 'plugins_loaded', 'bp_activity_setup_globals', 5 ); 64 add_action( 'admin_menu', 'bp_activity_setup_globals', 2 ); 65 66 function bp_activity_check_installed() { 67 global $wpdb, $bp; 68 69 // if ( get_site_option('bp-activity-db-version') < BP_ACTIVITY_DB_VERSION ) 58 70 bp_activity_install(); 59 71 } 60 add_action( 'plugins_loaded', 'bp_activity_setup_globals', 5 ); 61 add_action( 'admin_menu', 'bp_activity_setup_globals', 1 ); 72 add_action( 'admin_menu', 'bp_activity_check_installed' ); 62 73 63 74 function bp_activity_setup_root_component() { … … 65 76 bp_core_add_root_component( BP_ACTIVITY_SLUG ); 66 77 } 67 add_action( 'plugins_loaded', 'bp_activity_setup_root_component', 1);78 add_action( 'plugins_loaded', 'bp_activity_setup_root_component', 2 ); 68 79 69 80 function bp_activity_setup_nav() { -
trunk/bp-blogs.php
r1687 r1705 107 107 function bp_blogs_setup_globals() { 108 108 global $bp, $wpdb; 109 109 110 /* For internal identification */ 110 111 $bp->blogs->id = 'blogs'; 112 111 113 $bp->blogs->table_name = $wpdb->base_prefix . 'bp_user_blogs'; 112 114 $bp->blogs->table_name_blog_posts = $wpdb->base_prefix . 'bp_user_blogs_posts'; -
trunk/bp-forums.php
r1688 r1705 12 12 function bp_forums_setup() { 13 13 global $bp; 14 14 15 /* For internal identification */ 16 $bp->forums->id = 'forums'; 17 15 18 $bp->forums->image_base = BP_PLUGIN_URL . '/bp-forums/images'; 16 19 $bp->forums->bbconfig = get_site_option( 'bb-config-location' ); -
trunk/bp-friends.php
r1687 r1705 39 39 function friends_setup_globals() { 40 40 global $bp, $wpdb; 41 41 42 /* For internal identification */ 43 $bp->friends->id = 'friends'; 44 42 45 $bp->friends->table_name = $wpdb->base_prefix . 'bp_friends'; 43 46 $bp->friends->format_activity_function = 'friends_format_activity'; 44 47 $bp->friends->format_notification_function = 'friends_format_notifications'; 45 46 48 $bp->friends->slug = BP_FRIENDS_SLUG; 47 49 48 $bp->version_numbers->friends = BP_FRIENDS_VERSION;49 50 } 50 51 add_action( 'plugins_loaded', 'friends_setup_globals', 5 ); -
trunk/bp-groups.php
r1700 r1705 98 98 function groups_setup_globals() { 99 99 global $bp, $wpdb; 100 100 101 /* For internal identification */ 102 $bp->groups->id = 'groups'; 103 101 104 $bp->groups->table_name = $wpdb->base_prefix . 'bp_groups'; 102 105 $bp->groups->table_name_members = $wpdb->base_prefix . 'bp_groups_members'; -
trunk/bp-messages.php
r1687 r1705 74 74 function messages_setup_globals() { 75 75 global $bp, $wpdb; 76 77 /* For internal identification */ 78 $bp->messages->id = 'messages'; 76 79 77 80 $bp->messages->table_name_threads = $wpdb->base_prefix . 'bp_messages_threads'; … … 81 84 $bp->messages->format_activity_function = 'messages_format_activity'; 82 85 $bp->messages->format_notification_function = 'messages_format_notifications'; 83 $bp->messages->image_base = BP_PLUGIN_URL . '/bp-messages/images';84 86 $bp->messages->slug = BP_MESSAGES_SLUG; 85 86 $bp->version_numbers->messages = BP_MESSAGES_VERSION;87 87 } 88 88 add_action( 'plugins_loaded', 'messages_setup_globals', 5 ); -
trunk/bp-wire.php
r1693 r1705 19 19 function bp_wire_setup_globals() { 20 20 global $bp, $wpdb; 21 22 /* For internal identification */ 23 $bp->wire->id = 'wire'; 21 24 22 $bp->wire->image_base = BP_PLUGIN_URL . '/bp-wire/images';23 25 $bp->wire->slug = BP_WIRE_SLUG; 24 25 $bp->version_numbers->wire = BP_WIRE_VERSION;26 26 } 27 27 add_action( 'plugins_loaded', 'bp_wire_setup_globals', 5 );
Note: See TracChangeset
for help on using the changeset viewer.