Skip to content

v2.3.1 - Post Type filter crash fix

Choose a tag to compare

@techygeekshome techygeekshome released this 08 Aug 12:56
· 34 commits to main since this release

Bug fix

Fixed a bug where filtering the LinkGather admin table by Post Type (Post, Page, or Product) triggered a fatal "Cannot load linkgather." error instead of showing the filtered list. Leaving the filter on "All", or using the Author filter, was unaffected.

Root cause: LinkGather's admin page loads via wp-admin/admin.php?page=linkgather, and WordPress core reserves the post_type GET parameter for its own routing on admin.php pages. The plugin's own filter form also used post_type as its parameter name, colliding with core's routing and causing WordPress to bail out before LinkGather's render callback ever ran.

Fix: Renamed LinkGather's own filter parameter from post_type to lg_post_type everywhere it's used as a URL/form parameter. This does not touch any real WP_Query post_type arguments.

Recommended update for all users — this affects the plugin's headline "filter by post type" feature.

Full changelog: https://github.com/techygeekshome/linkgather/commits/main