Skip to content

fix: use core post type supports API#104

Open
chubes4 wants to merge 1 commit into
mainfrom
fix-103-post-type-supports
Open

fix: use core post type supports API#104
chubes4 wants to merge 1 commit into
mainfrom
fix-103-post-type-supports

Conversation

@chubes4

@chubes4 chubes4 commented Jul 12, 2026

Copy link
Copy Markdown
Member

Summary

  • replace the invalid WP_Post_Type::$supports read with get_all_post_type_supports() feature keys
  • add docs-info coverage for supported and unsupported post types

Verification

  • php -l inc/routes/docs/docs-info.php
  • php -l tests/Unit/routes/docs/docs-infoTest.php
  • phpcs --standard=WordPress tests/Unit/routes/docs/docs-infoTest.php
  • focused helper and WordPress core runtime assertions

Fixes #103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs route reads nonexistent WP_Post_Type::supports property

1 participant