Closed salcode closed 11 years ago
It appears do_shortcode()
does not process oEmbeds, so the shortcode
method is not fired on
do_shortcode( $post_after->post_content );
do_shortcode( $post_before->post_content );
in method delete_gist_transients
in class GistPress
when the content contains oEmbed syntax rather than the shortcode syntax
How about using
apply_filters( 'the_content', $post_after->post_content );
apply_filters( 'the_content', $post_before->post_content );
instead of do_shortcode()
?
I've forked the code and this is working for me.
That looks like a pretty good solution to catch both cases.
It also looks like the wrong variable is being used on line 606. That should be $attrs
instead of $rawattr
.
If you'd like to submit a pull request against the develop
branch, I'll go head and merge those changes.
That looks to be a great catch @salcode - this one has been bugging me for months, and it didn't even occur to me that shortcode vs oEmbed could be the difference.
Fixed in #35
Steps to reproduce: