Skip to content

Commit 528789f

Browse files
committed
release: bump to 0.9.1 with post_types and Chronos fatal fixes
Two wp.org regressions land in this patch release: - #209 — `WP_Meta::meta_type_date` fataled with "Class 'Chronos' not found" because the provider file never imported Chronos. Restores date-type meta generation and adds a regression test path (WP_MetaTest plus an end-to-end REST repro). - #210 — The Posts generator silently created Posts instead of the user-selected type because the admin form's plural `post_types` value was overwritten by the singular alias's default of `post`. The schema now documents `post_types` as the canonical parameter (array or CSV) with `post_type` kept as a deprecated alias. Plus a PHP 8.x undefined-property warning in `WP_Post::tax_input` and fresh wpunit coverage that pins both regressions in place.
1 parent 39accf6 commit 528789f

6 files changed

Lines changed: 21 additions & 6 deletions

File tree

fakerpress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: FakerPress
44
* Plugin URI: https://fakerpress.com
55
* Description: FakerPress is a clean way to generate fake data to your WordPress installation, great for developers who need testing
6-
* Version: 0.9.0
6+
* Version: 0.9.1
77
* Author: Gustavo Bordoni
88
* Author URI: https://bordoni.me
99
* Text Domain: fakerpress

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fakerpress",
33
"title": "FakerPress",
4-
"version": "0.9.0",
4+
"version": "0.9.1",
55
"homepage": "https://fakerpress.com/",
66
"repository": {
77
"type": "git",

readme.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FakerPress is a clean way to generate fake and dummy content to your WordPress,
88
**Tags:** [generator](http://wordpress.org/plugins/tags/generator), [dummy content](http://wordpress.org/plugins/tags/dummy+content), [lorem ipsun](http://wordpress.org/plugins/tags/lorem+ipsun), [testing](http://wordpress.org/plugins/tags/testing), [developer](http://wordpress.org/plugins/tags/developer)
99
**Requires at least:** 5.5
1010
**Tested up to:** 7.0
11-
**Stable tag:** 0.9.0
11+
**Stable tag:** 0.9.1
1212
**License:** [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html)
1313
**Requires PHP:** 8.1
1414
**Donate link:** https://fakerpress.com/r/sponsor
@@ -104,6 +104,13 @@ Thank you for wanting to make FakerPress better for everyone! [We salute you](ht
104104

105105
## Changelog ##
106106

107+
### 0.9.1 — 22 of May 2026 ###
108+
* Fix - Restore date-type meta generation by importing the `Chronos` class in the `WP_Meta` provider; calling `meta_type_date` no longer fatals with `Class "FakerPress\Provider\Chronos" not found`. [[#209](https://github.com/bordoni/fakerpress/pull/209)]
109+
* Fix - Honour the selected post type(s) on the Posts generator; the admin form's plural `post_types` value is no longer silently overwritten by the singular alias's default of `post`. [[#210](https://github.com/bordoni/fakerpress/pull/210)]
110+
* Fix - Suppress the `Undefined property: stdClass::$terms` warning emitted by `WP_Post::tax_input` under PHP 8.x when the taxonomy config does not include a `terms` key.
111+
* Tweak - REST endpoint `POST /fakerpress/v1/posts/generate` now documents `post_types` (array or comma-separated string) as the canonical parameter; the existing `post_type` singular alias is preserved for backwards compatibility.
112+
* Tests - Add regression coverage for `meta_type_date`, sparse `tax_input` configs, and every shape of `post_types` payload (CSV, array, singular alias, plural-wins-over-default).
113+
107114
### 0.9.0 — 9 of March 2026 ###
108115
* Feature - Complete REST API implementation replacing legacy AJAX system
109116
* Feature - Add comprehensive REST API endpoints for all modules (Posts, Users, Terms, Comments, Attachments)

readme.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: generator, dummy content, lorem ipsun, testing, developer
44
Requires at least: 5.5
55
Tested up to: 7.0
66
Requires PHP: 8.1
7-
Stable tag: 0.9.0
7+
Stable tag: 0.9.1
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010
Donate link: https://fakerpress.com/r/sponsor
@@ -106,6 +106,14 @@ Thank you for wanting to make FakerPress better for everyone! [We salute you](ht
106106

107107
== Changelog ==
108108

109+
= 0.9.1 — 22 of May 2026 =
110+
111+
* Fix - Restore date-type meta generation by importing the `Chronos` class in the `WP_Meta` provider; calling `meta_type_date` no longer fatals with `Class "FakerPress\Provider\Chronos" not found`. [[#209](https://github.com/bordoni/fakerpress/pull/209)]
112+
* Fix - Honour the selected post type(s) on the Posts generator; the admin form's plural `post_types` value is no longer silently overwritten by the singular alias's default of `post`. [[#210](https://github.com/bordoni/fakerpress/pull/210)]
113+
* Fix - Suppress the `Undefined property: stdClass::$terms` warning emitted by `WP_Post::tax_input` under PHP 8.x when the taxonomy config does not include a `terms` key.
114+
* Tweak - REST endpoint `POST /fakerpress/v1/posts/generate` now documents `post_types` (array or comma-separated string) as the canonical parameter; the existing `post_type` singular alias is preserved for backwards compatibility.
115+
* Tests - Add regression coverage for `meta_type_date`, sparse `tax_input` configs, and every shape of `post_types` payload (CSV, array, singular alias, plural-wins-over-default).
116+
109117
= 0.9.0 — 9 of March 2026 =
110118

111119
* Feature - Complete REST API implementation replacing legacy AJAX system

src/FakerPress/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Plugin {
2525
*
2626
* @var string
2727
*/
28-
public const VERSION = '0.9.0';
28+
public const VERSION = '0.9.1';
2929

3030
/**
3131
* @since 0.6.0

src/data/readme.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)