AxeWP / wp-graphql-rank-math

Add GraphQL support for RankMath SEO
GNU General Public License v3.0
50 stars 7 forks source link

fix: improve openGraph type handling #104

Closed justlevine closed 1 month ago

justlevine commented 1 month ago

What

This PR guards against PHP fatal errors when resolving OpenGraph data, by defensively type casting any resolve callbacks that return a specific PHP type.

Why

RM doesn't sanitize for types when using custom open graph values. This is readily apparent in RM pro, but also afffects RM free, due to how filters get applied.

Fixes #98

How

Testing Instructions

Additional Info

Checklist: