Changeset 3089543
- Timestamp:
- 05/20/2024 04:21:20 PM (23 months ago)
- Location:
- wp-dummy-content-generator/trunk
- Files:
-
- 7 edited
-
README.txt (modified) (2 diffs)
-
composer.json (modified) (1 diff)
-
composer.lock (modified) (3 diffs)
-
includes/functions-posts.php (modified) (2 diffs)
-
includes/functions-products.php (modified) (1 diff)
-
includes/functions-users.php (modified) (1 diff)
-
wp_dummy_content_generator.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-dummy-content-generator/trunk/README.txt
r3056263 r3089543 3 3 Donate link: 4 4 Tags: WP Dummy Content Generator, WordPress dummy content plugin, Dummy content generation for WordPress, Populating WordPress site with dummy content, Generate dummy posts and pages in WordPress, Deleting generated dummy content in WordPress, Customizable dummy content for WordPress, Efficient test data generation for WordPress, Simplifying dummy content management in WordPress, Streamlining website development with dummy content., WordPress dummy content 5 Requires at least: 5.66 Tested up to: 6. 45 Requires at least: 6.0 6 Tested up to: 6.5 7 7 Stable tag: trunk 8 Requires PHP: 5.48 Requires PHP: 7.4 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 121 121 3.2.1 - Minor bug fixing. 122 122 3.3.0 - Security improvements. 123 3.3.1 - Fixed the fatel error. 123 3.3.1 - Fixed the fetal error. 124 3.4.0 - Made it compatible 7.4 to 8.3 php version. 124 125 == Upgrade Notice == -
wp-dummy-content-generator/trunk/composer.json
r2460480 r3089543 1 1 { 2 2 "require": { 3 "f zaninotto/faker": "^1.8"3 "fakerphp/faker": "^1.23" 4 4 } 5 5 } -
wp-dummy-content-generator/trunk/composer.lock
r2460480 r3089543 2 2 "_readme": [ 3 3 "This file locks the dependencies of your project to a known state", 4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md# composer-lock-the-lock-file",4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", 5 5 "This file is @generated automatically" 6 6 ], 7 "hash": "59a26bf35d2e80e962c63537efc3f8cc", 8 "content-hash": "d87d8ffa95542e820229615711818de9", 7 "content-hash": "3fb5a307183627a23aeed132a1bec5e1", 9 8 "packages": [ 10 9 { 11 "name": "f zaninotto/faker",12 "version": "v1. 8.0",10 "name": "fakerphp/faker", 11 "version": "v1.23.1", 13 12 "source": { 14 13 "type": "git", 15 "url": "https://github.com/ fzaninotto/Faker.git",16 "reference": " f72816b43e74063c8b10357394b6bba8cb1c10de"14 "url": "https://github.com/FakerPHP/Faker.git", 15 "reference": "bfb4fe148adbf78eff521199619b93a52ae3554b" 17 16 }, 18 17 "dist": { 19 18 "type": "zip", 20 "url": "https://api.github.com/repos/ fzaninotto/Faker/zipball/f72816b43e74063c8b10357394b6bba8cb1c10de",21 "reference": " f72816b43e74063c8b10357394b6bba8cb1c10de",19 "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/bfb4fe148adbf78eff521199619b93a52ae3554b", 20 "reference": "bfb4fe148adbf78eff521199619b93a52ae3554b", 22 21 "shasum": "" 23 22 }, 24 23 "require": { 25 "php": "^5.3.3 || ^7.0" 24 "php": "^7.4 || ^8.0", 25 "psr/container": "^1.0 || ^2.0", 26 "symfony/deprecation-contracts": "^2.2 || ^3.0" 27 }, 28 "conflict": { 29 "fzaninotto/faker": "*" 26 30 }, 27 31 "require-dev": { 32 "bamarni/composer-bin-plugin": "^1.4.1", 33 "doctrine/persistence": "^1.3 || ^2.0", 28 34 "ext-intl": "*", 29 "phpunit/phpunit": "^4.8.35 || ^5.7", 30 "squizlabs/php_codesniffer": "^1.5" 35 "phpunit/phpunit": "^9.5.26", 36 "symfony/phpunit-bridge": "^5.4.16" 37 }, 38 "suggest": { 39 "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", 40 "ext-curl": "Required by Faker\\Provider\\Image to download images.", 41 "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", 42 "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", 43 "ext-mbstring": "Required for multibyte Unicode string functionality." 31 44 }, 32 45 "type": "library", 33 "extra": {34 "branch-alias": {35 "dev-master": "1.8-dev"36 }37 },38 46 "autoload": { 39 47 "psr-4": { … … 56 64 "fixtures" 57 65 ], 58 "time": "2018-07-12 10:23:15" 66 "support": { 67 "issues": "https://github.com/FakerPHP/Faker/issues", 68 "source": "https://github.com/FakerPHP/Faker/tree/v1.23.1" 69 }, 70 "time": "2024-01-02T13:46:09+00:00" 71 }, 72 { 73 "name": "psr/container", 74 "version": "2.0.2", 75 "source": { 76 "type": "git", 77 "url": "https://github.com/php-fig/container.git", 78 "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" 79 }, 80 "dist": { 81 "type": "zip", 82 "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", 83 "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", 84 "shasum": "" 85 }, 86 "require": { 87 "php": ">=7.4.0" 88 }, 89 "type": "library", 90 "extra": { 91 "branch-alias": { 92 "dev-master": "2.0.x-dev" 93 } 94 }, 95 "autoload": { 96 "psr-4": { 97 "Psr\\Container\\": "src/" 98 } 99 }, 100 "notification-url": "https://packagist.org/downloads/", 101 "license": [ 102 "MIT" 103 ], 104 "authors": [ 105 { 106 "name": "PHP-FIG", 107 "homepage": "https://www.php-fig.org/" 108 } 109 ], 110 "description": "Common Container Interface (PHP FIG PSR-11)", 111 "homepage": "https://github.com/php-fig/container", 112 "keywords": [ 113 "PSR-11", 114 "container", 115 "container-interface", 116 "container-interop", 117 "psr" 118 ], 119 "support": { 120 "issues": "https://github.com/php-fig/container/issues", 121 "source": "https://github.com/php-fig/container/tree/2.0.2" 122 }, 123 "time": "2021-11-05T16:47:00+00:00" 124 }, 125 { 126 "name": "symfony/deprecation-contracts", 127 "version": "v3.5.0", 128 "source": { 129 "type": "git", 130 "url": "https://github.com/symfony/deprecation-contracts.git", 131 "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" 132 }, 133 "dist": { 134 "type": "zip", 135 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", 136 "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", 137 "shasum": "" 138 }, 139 "require": { 140 "php": ">=8.1" 141 }, 142 "type": "library", 143 "extra": { 144 "branch-alias": { 145 "dev-main": "3.5-dev" 146 }, 147 "thanks": { 148 "name": "symfony/contracts", 149 "url": "https://github.com/symfony/contracts" 150 } 151 }, 152 "autoload": { 153 "files": [ 154 "function.php" 155 ] 156 }, 157 "notification-url": "https://packagist.org/downloads/", 158 "license": [ 159 "MIT" 160 ], 161 "authors": [ 162 { 163 "name": "Nicolas Grekas", 164 "email": "p@tchwork.com" 165 }, 166 { 167 "name": "Symfony Community", 168 "homepage": "https://symfony.com/contributors" 169 } 170 ], 171 "description": "A generic function and convention to trigger deprecation notices", 172 "homepage": "https://symfony.com", 173 "support": { 174 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" 175 }, 176 "funding": [ 177 { 178 "url": "https://symfony.com/sponsor", 179 "type": "custom" 180 }, 181 { 182 "url": "https://github.com/fabpot", 183 "type": "github" 184 }, 185 { 186 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", 187 "type": "tidelift" 188 } 189 ], 190 "time": "2024-04-18T09:32:20+00:00" 59 191 } 60 192 ], … … 66 198 "prefer-lowest": false, 67 199 "platform": [], 68 "platform-dev": [] 200 "platform-dev": [], 201 "plugin-api-version": "2.3.0" 69 202 } -
wp-dummy-content-generator/trunk/includes/functions-posts.php
r2937274 r3089543 56 56 57 57 function wp_dummy_content_generator_generateFiveTerms($taxonomiesvalue){ 58 // $faker->words(5);59 include( WP_PLUGIN_DIR.'/'.plugin_dir_path(wp_dummy_content_generator_PLUGIN_BASE_URL) . 'Faker-main/vendor/autoload.php');60 58 $wp_dummy_content_generatorFaker = Faker\Factory::create(); 61 59 $dummyTermNamesArr = $wp_dummy_content_generatorFaker->words(5); … … 94 92 $postDateTo = date("Y-m-d"); 95 93 } 96 include( WP_PLUGIN_DIR.'/'.plugin_dir_path(wp_dummy_content_generator_PLUGIN_BASE_URL) . 'Faker-main/vendor/autoload.php');97 // use the factory to create a Faker\Generator instance98 // $wp_dummy_content_generatorFaker = Faker\Factory::create();99 94 $wp_dummy_content_generatorFaker = Faker\Factory::create(); 100 95 $wp_dummy_content_generatorPostTitle = $wp_dummy_content_generatorFaker->text($maxNbChars = 40); -
wp-dummy-content-generator/trunk/includes/functions-products.php
r2937274 r3089543 5 5 6 6 function wp_dummy_content_generatorGenerateProducts($posttype='product',$wp_dummy_content_generatorIsThumbnail='off',$productHaveSamePrice='off',$productHaveSalesPrice='off'){ 7 include( WP_PLUGIN_DIR.'/'.plugin_dir_path(wp_dummy_content_generator_PLUGIN_BASE_URL) . 'Faker-main/vendor/autoload.php');8 // use the factory to create a Faker\Generator instance9 7 $wp_dummy_content_generatorFaker = Faker\Factory::create(); 10 8 $wp_dummy_content_generatorPostTitle = $wp_dummy_content_generatorFaker->text($maxNbChars = 10); -
wp-dummy-content-generator/trunk/includes/functions-users.php
r2937274 r3089543 5 5 6 6 function wp_dummy_content_generatorGenerateUsers($userRole='subscriber',$wp_dummy_content_generatorIsBio='off'){ 7 include( WP_PLUGIN_DIR.'/'.plugin_dir_path(wp_dummy_content_generator_PLUGIN_BASE_URL) . 'Faker-main/vendor/autoload.php');8 // use the factory to create a Faker\Generator instance9 7 $wp_dummy_content_generatorFaker = Faker\Factory::create(); 10 8 $wp_dummy_content_generatorFirstName = $wp_dummy_content_generatorFaker->firstName; -
wp-dummy-content-generator/trunk/wp_dummy_content_generator.php
r3056263 r3089543 17 17 * Plugin URI: https://wpdcg.online/ 18 18 * Description: The "WP Dummy Content Generator" plugin is particularly useful for developers, designers, and website administrators who want to quickly populate their WordPress site with realistic dummy content. It saves time and effort by automatically generating content that mimics real posts and pages, enabling you to focus on other aspects of website development or testing. 19 * Version: 3. 3.119 * Version: 3.4.0 20 20 * Author: Deepak anand 21 21 * Author URI: https://wpdcg.online/about-us/ … … 37 37 * Rename this for your plugin and update it as you release new versions. 38 38 */ 39 define( 'wp_dummy_content_generator_PLUGIN_NAME_VERSION', '3. 3.1' );39 define( 'wp_dummy_content_generator_PLUGIN_NAME_VERSION', '3.4.0' ); 40 40 define( 'wp_dummy_content_generator_PLUGIN_BASE_URL',plugin_basename( __FILE__ )); 41 41 define( 'wp_dummy_content_generator_PLUGIN_BASE_URI',plugin_dir_path( __FILE__ )); … … 63 63 register_deactivation_hook( __FILE__, 'deactivate_wp_dummy_content_generator' ); 64 64 65 require_once plugin_dir_path( __FILE__ ) . ' Faker-main/vendor/autoload.php';65 require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; 66 66 67 67 /**
Note: See TracChangeset
for help on using the changeset viewer.