Skip to content

0.9.2

Choose a tag to compare

@bordoni bordoni released this 19 Oct 05:30
· 302 commits to main since this release
0.9.2

Patch release with WordPress 7.0 and PHP 8.1+ fixes, plus three generators that ignored what you picked.

Fixes

  • Attachments on WordPress 7.0: generating attachments no longer fatals with Call to undefined function FakerPress\Module\media_handle_sideload(). WordPress 7.0 preloads wp-admin/includes/file.php, so the single download_url() guard skipped media.php. Each admin include is now guarded by the function it provides. (#221)
  • Terms in the selected taxonomy: choosing Tags creates tags again, instead of categories. The singular taxonomy alias's category default no longer overwrites the form's taxonomies value. (#227)
  • Erase faked data deletes terms: Term::fetch()/delete() read the singular fakerpress.module_flag.term option while generation wrote the plural one, so generated categories and tags were never deleted. (#228)
  • Users get the selected role: bulk user generation no longer always assigns Subscriber. The endpoint prefers the form's roles value, and the module falls back to the site's default role when none is given. (#229)
  • PHP 8.1+ notices: no more explode(): Passing null to parameter #2 when generating posts from a sparse payload (#224), and no more Using null as an array offset is deprecated from core's Requests/Iri.php when fetching external images (#230).

Full changelog: 0.9.1...0.9.2
Milestone: https://github.com/bordoni/fakerpress/milestone/11