Skip to content

0.9.1

Latest

Choose a tag to compare

@bordoni bordoni released this 22 May 21:37
0.9.1
528789f

Patch release fixing two regressions reported on wp.org.

Fixes

  • Restore date-type meta generationWP_Meta::meta_type_date no longer fatals with Class "FakerPress\Provider\Chronos" not found. The Chronos import was missing from the provider file. (#209) — wp.org thread
  • Honour the selected post type(s) on the Posts generator. The admin form's plural post_types value was silently overwritten by the singular alias's default of post, so selecting "Page" still produced posts. (#210) — wp.org thread
  • 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.

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.

Tests

  • 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).

Full changelog: 0.9.0...0.9.1
Milestone: https://github.com/bordoni/fakerpress/milestone/10