Media connector assumes parent post exists #907

rmccue opened this Issue Feb 16, 2017 · 0 comments


None yet

1 participant

rmccue commented Feb 16, 2017

In Connector_Media, the code assumes that if there's a parent ID, the parent post exists. This is not always true if you have an orphaned attachment.

I'd suggest changing the ternary to use $parent instead of $parent_id

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