Dev#16
Merged
Merged
Conversation
- Update PHP requirement from 8.1 to 8.0 for consistency across all packages
Co-authored-by: Cursor <cursoragent@cursor.com>
…ation
Security:
- OutputService and SchemaGraph now use JSON_HEX_TAG|AMP|APOS|QUOT flags
to prevent </script> XSS breakout inside application/ld+json blocks
Provider enrichments:
- ArticleProvider: add mainEntityOfPage, inLanguage, isPartOf, image
dimensions, keywords (tags), articleSection (category), wordCount;
fix missing wp_schema_framework_article_data filter on regular posts
- WebPageProvider: add inLanguage, image with width/height; make breadcrumb
reference conditional via wp_schema_framework_has_breadcrumb filter so
dangling references are never output when no BreadcrumbList is present
- WebsiteProvider: add inLanguage from bloginfo
- MediaProvider: fix can_provide to use attachment context; fix
format_duration returning invalid 'PT' for zero-second media
Context and graph:
- ContextDetector: add attachment context; wire wp_schema_framework_context
filter that was documented but never applied
- GraphBuilder: log validate_references() errors under WP_DEBUG
App:
- register_provider() guards against non-existent class, missing interface,
and constructor Throwables; returns false safely when called before init
- Move initialized=true before do_action('wp_schema_framework_register_providers')
so external providers registered during that action are accepted
Tests:
- Add ContextDetectorTest and OutputServiceTest
- Extend AppTest with interface check, Throwable catch, and pre-init guard
dannorthern
added a commit
that referenced
this pull request
May 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.