WordPress.org

Plugin Directory

Changeset 648472


Ignore:
Timestamp:
01/05/13 23:16:34 (16 months ago)
Author:
MrWiblog
Message:

1.2 (2013/01/05) Fixed incorrect function and class calls.

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

Legend:

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

    r601284 r648472  
    44Plugin URI: http://www.stillbreathing.co.uk/wordpress/demo-data-creator/ 
    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: deleting the data created by this plugin will delete EVERYTHING (pages, posts, comments, users - everything) on your site, so DO NOT use on a production site, or one where you want to save the data. 
    6 Version: 1.1 
     6Version: 1.2 
    77Author: Chris Taylor 
    88Author URI: http://www.stillbreathing.co.uk 
     
    1414$register->slug = "demodata"; 
    1515$register->name = "Demo Data Creator"; 
    16 $register->version = "1.1"; 
     16$register->version = "1.2"; 
    1717$register->developer = "Chris Taylor"; 
    1818$register->homepage = "http://www.stillbreathing.co.uk"; 
     
    17401740    'post_content' => $pagecontent, 
    17411741    'post_excerpt' => '', 
    1742     'post_category' => $cats); 
     1742    'post_category' => ''); 
    17431743    return wp_insert_post( $page ); 
    17441744} 
     
    19271927function demodata_random_blog_user_id($id = 0) 
    19281928{ 
    1929     $wp_user_search = new WP_User_Search(null, null, null); 
    1930     $rs = $wp_user_search->get_results(); 
     1929    $user_fields = array( 'ID' ); 
     1930    $wp_user_query = new WP_User_Query( array( 'fields' => $user_fields ) ); 
     1931    $rs = $wp_user_query->results; 
    19311932    $x = array_rand($rs); 
    1932     return $rs[$x]; 
     1933    return $rs[$x]->ID; 
    19331934} 
    19341935 
  • demo-data-creator/trunk/readme.txt

    r601284 r648472  
    55Requires at least: 2.7 
    66Tested up to: 3.3.1 
    7 Stable tag: 1.1 
     7Stable tag: 1.2 
    88 
    99Demo Data Creator is a Wordpress 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. 
     
    6767 
    6868== Changelog == 
     69 
     70= 1.2 (2013/01/05) = 
     71 
     72Fixed incorrect function and class calls. 
    6973 
    7074= 1.1 (2012/09/18) = 
Note: See TracChangeset for help on using the changeset viewer.