Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check wp_get_attachment_image_src() return values in _get_image_attachment() #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Whissi
Copy link

@Whissi Whissi commented Nov 27, 2014

_get_image_attachment() could get called with an invalid $attachment_id parameter value (for example, when the get_scan_image() method extracts an image, the method will pass the complete match first (not just the ID). We need to make sure that we don't set an invalid image_args array in this case.

…hment()

_get_image_attachment() could get called with an invalid $attachment_id parameter value (for example, when the get_scan_image() method extracts an image, the method will pass the complete match first (not just the ID). We need to make sure that we don't set an invalid image_args array in this case.
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.

1 participant