Plugin Directory

Changeset 1964994


Ignore:
Timestamp:
10/29/2018 11:16:05 AM (7 years ago)
Author:
franciscopalacios
Message:

Version 1.9.1

Location:
postem-ipsum/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • postem-ipsum/trunk/README.md

    r1866813 r1964994  
    22Plugin to create  and generate posts
    33
    4 This plugin creates dummy posts (and woocommerce dummy products too)
     4This 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
    512
    613You can select post type, taxonomy, category, paragraph number and size, image, and so on
  • postem-ipsum/trunk/README.txt

    r1898350 r1964994  
    4040
    4141== Changelog ==
     42= 1.9.1 =
     43* Better title creation.
    4244= 1.9 =
    4345* We can choose more than one term
  • postem-ipsum/trunk/admin/postem-ipsum-admin.php

    r1898350 r1964994  
    346346
    347347                // 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');
    349349                if (is_array($response_title)) {
    350350                    $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
    352354                }
    353355
    354                 $title = $this->postem_ipsum_truncate_words($title_text, 15);
     356
     357
     358                $title = $this->postem_ipsum_truncate_words($title_text, 10);
    355359                $short_description_url = 'http://loripsum.net/api/1/short';
    356360
     
    572576
    573577                    // 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');
    575579                    if (is_array($response_title)) {
    576580                        $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];
    578583                    }
    579584
     
    764769    }
    765770
     771
     772    /////////////// RANDOM STRING ///////////////////////////
    766773    public function postem_ipsum_generateRandomString($length = 10)
    767774    {
     
    897904                    $taxonomy, // the taxonomy
    898905                    array(
    899                         'description' => '',
     906                        'description' => 'Created by Postem Ipsum',
    900907                        'slug' => $term_slug,
    901908                    )
  • postem-ipsum/trunk/postem-ipsum.php

    r1898350 r1964994  
    44 * Plugin URI:
    55 * Description:       Plugin to create some random posts from scratch
    6  * Version:           1.9
     6 * Version:           1.9.1
    77 * Author:            Fco Palacios
    88 * Author URI:
Note: See TracChangeset for help on using the changeset viewer.