Adjust the caption handling

Commit 358252e is just updating to latest version of the plugin from the WP repo, so that one can pretty much be ignored or just merged.

Commit 5f0b385 adjusts how the caption retrieval process occurs and appears to be working properly in all of my environments. It pretty much just adjusts the conditional and moves the find to the parent instead of the direct $e. The original version was not working on my sites.