check isset($attachment[0]) before returning it
Avoids RLIKE complications with odd file names
Merge pull request #1 from AngelinaBelle/patch-3

Avoids RLIKE complications with odd file names
three changes
Fix RLIKE, $attachmet[0], and autoembedding jpg

RLIKE did not work with "exotic" filename characters like "+"
$attachment[0] did not exist if the query returned 0 rows.
IF no media ID is found, and this is an autoembed attempt, and it is not a *.pdf file, do not embed it.
Update vanilla-pdf-embed.php
Update vanilla-pdf-embed.php
if => elseif (autoembed file extension check)

Only check for pdf file extension if autoembed file is NOT in _posts
needed quotemeta and $ in autoembedded files
Merge remote-tracking branch 'angelina/patch-1'

Patch by AngelinaBelle: https://github.com/doherty/WP-vanilla-pdf-embed/pull/4

Fixes several corner cases.

git-svn-id: http://plugins.svn.wordpress.org/vanilla-pdf-embed/trunk@907231 b8457f37-d9ea-0310-8a92-e5e31aec5664
Tested with 3.9.0

git-svn-id: http://plugins.svn.wordpress.org/vanilla-pdf-embed/trunk@907232 b8457f37-d9ea-0310-8a92-e5e31aec5664