WordPress.org

Plugin Directory

Changeset 228101


Ignore:
Timestamp:
04/12/10 19:52:03 (4 years ago)
Author:
MrWiblog
Message:

0.9.2 (2010/04/12) Fixed bug with non-deletion of activity streams

Location:
demo-data-creator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • demo-data-creator/trunk/demodata.php

    r224621 r228101  
    44Plugin URI: http://www.stillbreathing.co.uk/projects/demodata/ 
    55Description: Demo Data Creator is a Wordpress, WPMU and BuddyPress plugin that allows a Wordpress developer to create demo users, blogs, posts, comments and blogroll links for a Wordpress site. For BuddyPress you can also create user friendships, user statuses, user wire posts, groups, group members and group wire posts. Please note: On activation this plugin will send a message to the developer with your site name and URL. This information will be kept private. If you are not happy with the developer knowing you are using their plugin, please do not use it. 
    6 Version: 0.9.1 
     6Version: 0.9.2 
    77Author: Chris Taylor 
    88Author URI: http://www.stillbreathing.co.uk 
     
    1212function demodata_plugin_register() { 
    1313    $plugin = "Demo Data Creator"; 
    14     $version = "0.9.1"; 
     14    $version = "0.9.2"; 
    1515    $site = get_option( "blogname" ); 
    1616    $url = get_option( "siteurl" ); 
     
    19571957    if ($buddypress) 
    19581958    { 
     1959        // delete activity 
     1960        $sql = "delete from " . $wpdb->base_prefix. "bp_activity;"; 
     1961        $activity = $wpdb->query($sql); 
     1962         
     1963        // delete activity meta 
     1964        $sql = "delete from " . $wpdb->base_prefix. "bp_activity_meta;"; 
     1965        $activity_meta = $wpdb->query($sql); 
     1966     
    19591967        // delete user activity 
    19601968        $sql = "delete from " . $wpdb->base_prefix. "bp_activity_user_activity;"; 
     
    20012009        $user_blogs_posts = $wpdb->query($sql); 
    20022010         
     2011        // delete user blog meta 
     2012        $sql = "delete from " . $wpdb->base_prefix. "bp_user_blogs_blogmeta;"; 
     2013        $user_blogs_blogmeta = $wpdb->query($sql); 
     2014         
    20032015        // delete user blog comments 
    20042016        $sql = "delete from " . $wpdb->base_prefix. "bp_user_blogs_comments;"; 
    20052017        $user_blogs_comments = $wpdb->query($sql); 
     2018         
     2019        // delete notifications 
     2020        $sql = "delete from " . $wpdb->base_prefix. "bp_notifications;"; 
     2021        $notifications = $wpdb->query($sql); 
     2022         
     2023        // delete messages recipients 
     2024        $sql = "delete from " . $wpdb->base_prefix. "bp_messages_recipients;"; 
     2025        $messages_recipients = $wpdb->query($sql); 
     2026         
     2027        // delete messages notices 
     2028        $sql = "delete from " . $wpdb->base_prefix. "bp_messages_notices;"; 
     2029        $messages_notices = $wpdb->query($sql); 
     2030         
     2031        // delete messages 
     2032        $sql = "delete from " . $wpdb->base_prefix. "bp_messages_messages;"; 
     2033        $messages_messages = $wpdb->query($sql); 
    20062034         
    20072035        echo '<li>' . __("BuddyPress data deleted", "demodata") . '</li> 
  • demo-data-creator/trunk/readme.txt

    r224621 r228101  
    55Requires at least: 2.7 
    66Tested up to: 2.9.2 
    7 Stable tag: 0.9.1 
     7Stable tag: 0.9.2 
    88 
    99Demo Data Creator is a Wordpress, WPMU and BuddyPress plugin that allows a Wordpress developer to create demo users, blogs, posts, comments and blogroll links for a Wordpress site. For BuddyPress you can also create user friendships, user statuses, user wire posts, groups, group members and group wire posts. 
     
    6464== Changelog == 
    6565 
     660.9.2 (2010/04/12) Fixed bug with non-deletion of activity streams 
     67 
    66680.9.1 (2010/04/01) Added Plugin Register code 
    6769 
Note: See TracChangeset for help on using the changeset viewer.