Plugin Directory

Changeset 3089543


Ignore:
Timestamp:
05/20/2024 04:21:20 PM (23 months ago)
Author:
deepakanand767
Message:

made the plugin compatiable with 7.4 and upto 8.3 php version

Location:
wp-dummy-content-generator/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • wp-dummy-content-generator/trunk/README.txt

    r3056263 r3089543  
    33Donate link:
    44Tags: 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.6
    6 Tested up to: 6.4
     5Requires at least: 6.0
     6Tested up to: 6.5
    77Stable tag: trunk
    8 Requires PHP: 5.4
     8Requires PHP: 7.4
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1211213.2.1 - Minor bug fixing.
    1221223.3.0 - Security improvements.
    123 3.3.1 - Fixed the fatel error.
     1233.3.1 - Fixed the fetal error.
     1243.4.0 - Made it compatible 7.4 to 8.3 php version.
    124125== Upgrade Notice ==
  • wp-dummy-content-generator/trunk/composer.json

    r2460480 r3089543  
    11{
    22    "require": {
    3         "fzaninotto/faker": "^1.8"
     3        "fakerphp/faker": "^1.23"
    44    }
    55}
  • wp-dummy-content-generator/trunk/composer.lock

    r2460480 r3089543  
    22    "_readme": [
    33        "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",
    55        "This file is @generated automatically"
    66    ],
    7     "hash": "59a26bf35d2e80e962c63537efc3f8cc",
    8     "content-hash": "d87d8ffa95542e820229615711818de9",
     7    "content-hash": "3fb5a307183627a23aeed132a1bec5e1",
    98    "packages": [
    109        {
    11             "name": "fzaninotto/faker",
    12             "version": "v1.8.0",
     10            "name": "fakerphp/faker",
     11            "version": "v1.23.1",
    1312            "source": {
    1413                "type": "git",
    15                 "url": "https://github.com/fzaninotto/Faker.git",
    16                 "reference": "f72816b43e74063c8b10357394b6bba8cb1c10de"
     14                "url": "https://github.com/FakerPHP/Faker.git",
     15                "reference": "bfb4fe148adbf78eff521199619b93a52ae3554b"
    1716            },
    1817            "dist": {
    1918                "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",
    2221                "shasum": ""
    2322            },
    2423            "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": "*"
    2630            },
    2731            "require-dev": {
     32                "bamarni/composer-bin-plugin": "^1.4.1",
     33                "doctrine/persistence": "^1.3 || ^2.0",
    2834                "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."
    3144            },
    3245            "type": "library",
    33             "extra": {
    34                 "branch-alias": {
    35                     "dev-master": "1.8-dev"
    36                 }
    37             },
    3846            "autoload": {
    3947                "psr-4": {
     
    5664                "fixtures"
    5765            ],
    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"
    59191        }
    60192    ],
     
    66198    "prefer-lowest": false,
    67199    "platform": [],
    68     "platform-dev": []
     200    "platform-dev": [],
     201    "plugin-api-version": "2.3.0"
    69202}
  • wp-dummy-content-generator/trunk/includes/functions-posts.php

    r2937274 r3089543  
    5656
    5757function 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');
    6058    $wp_dummy_content_generatorFaker = Faker\Factory::create();
    6159    $dummyTermNamesArr = $wp_dummy_content_generatorFaker->words(5);
     
    9492        $postDateTo = date("Y-m-d");
    9593    }
    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 instance
    98     // $wp_dummy_content_generatorFaker = Faker\Factory::create();
    9994    $wp_dummy_content_generatorFaker = Faker\Factory::create();
    10095    $wp_dummy_content_generatorPostTitle = $wp_dummy_content_generatorFaker->text($maxNbChars = 40);
  • wp-dummy-content-generator/trunk/includes/functions-products.php

    r2937274 r3089543  
    55
    66function 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 instance
    97    $wp_dummy_content_generatorFaker = Faker\Factory::create();
    108    $wp_dummy_content_generatorPostTitle = $wp_dummy_content_generatorFaker->text($maxNbChars = 10);
  • wp-dummy-content-generator/trunk/includes/functions-users.php

    r2937274 r3089543  
    55
    66function 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 instance
    97    $wp_dummy_content_generatorFaker = Faker\Factory::create();
    108    $wp_dummy_content_generatorFirstName = $wp_dummy_content_generatorFaker->firstName;
  • wp-dummy-content-generator/trunk/wp_dummy_content_generator.php

    r3056263 r3089543  
    1717 * Plugin URI:        https://wpdcg.online/
    1818 * 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.1
     19 * Version:           3.4.0
    2020 * Author:            Deepak anand
    2121 * Author URI:        https://wpdcg.online/about-us/
     
    3737 * Rename this for your plugin and update it as you release new versions.
    3838 */
    39 define( 'wp_dummy_content_generator_PLUGIN_NAME_VERSION', '3.3.1' );
     39define( 'wp_dummy_content_generator_PLUGIN_NAME_VERSION', '3.4.0' );
    4040define( 'wp_dummy_content_generator_PLUGIN_BASE_URL',plugin_basename( __FILE__ ));
    4141define( 'wp_dummy_content_generator_PLUGIN_BASE_URI',plugin_dir_path( __FILE__ ));
     
    6363register_deactivation_hook( __FILE__, 'deactivate_wp_dummy_content_generator' );
    6464
    65 require_once plugin_dir_path( __FILE__ ) . 'Faker-main/vendor/autoload.php';
     65require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
    6666
    6767/**
Note: See TracChangeset for help on using the changeset viewer.