Changeset 1964994
- Timestamp:
- 10/29/2018 11:16:05 AM (7 years ago)
- Location:
- postem-ipsum/trunk
- Files:
-
- 4 edited
-
README.md (modified) (1 diff)
-
README.txt (modified) (1 diff)
-
admin/postem-ipsum-admin.php (modified) (4 diffs)
-
postem-ipsum.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
postem-ipsum/trunk/README.md
r1866813 r1964994 2 2 Plugin to create and generate posts 3 3 4 This plugin creates dummy posts (and woocommerce dummy products too) 4 This plugin creates: 5 -dummy posts 6 - dummy custom post type items 7 - dummy products (if Woocommerce is active) 8 - dummy comments 9 - dummy terms and categories 10 - dummy users 11 - dummy orders for Woocommerce 5 12 6 13 You can select post type, taxonomy, category, paragraph number and size, image, and so on -
postem-ipsum/trunk/README.txt
r1898350 r1964994 40 40 41 41 == Changelog == 42 = 1.9.1 = 43 * Better title creation. 42 44 = 1.9 = 43 45 * We can choose more than one term -
postem-ipsum/trunk/admin/postem-ipsum-admin.php
r1898350 r1964994 346 346 347 347 // The title 348 $response_title = wp_remote_get('http://loripsum.net/api/ 1/short');348 $response_title = wp_remote_get('http://loripsum.net/api/2/short'); 349 349 if (is_array($response_title)) { 350 350 $header = $response_title['headers']; // array of http header lines 351 $title_text = $response_title['body']; // use the content 351 $title_array = explode(".",$response_title['body']); // use the content 352 $title_text = $title_array[1]; 353 352 354 } 353 355 354 $title = $this->postem_ipsum_truncate_words($title_text, 15); 356 357 358 $title = $this->postem_ipsum_truncate_words($title_text, 10); 355 359 $short_description_url = 'http://loripsum.net/api/1/short'; 356 360 … … 572 576 573 577 // The title 574 $response_title = wp_remote_get('http://loripsum.net/api/ 1/short');578 $response_title = wp_remote_get('http://loripsum.net/api/2/short'); 575 579 if (is_array($response_title)) { 576 580 $header = $response_title['headers']; // array of http header lines 577 $title_text = $response_title['body']; // use the content 581 $title_array = explode(".",$response_title['body']); // use the content 582 $title_text = $title_array[1]; 578 583 } 579 584 … … 764 769 } 765 770 771 772 /////////////// RANDOM STRING /////////////////////////// 766 773 public function postem_ipsum_generateRandomString($length = 10) 767 774 { … … 897 904 $taxonomy, // the taxonomy 898 905 array( 899 'description' => ' ',906 'description' => 'Created by Postem Ipsum', 900 907 'slug' => $term_slug, 901 908 ) -
postem-ipsum/trunk/postem-ipsum.php
r1898350 r1964994 4 4 * Plugin URI: 5 5 * Description: Plugin to create some random posts from scratch 6 * Version: 1.9 6 * Version: 1.9.1 7 7 * Author: Fco Palacios 8 8 * Author URI:
Note: See TracChangeset
for help on using the changeset viewer.