Advertisement
Guest User

Gravity Forms get_embed_post() bug 1.5.rc3.4

a guest
Jan 21st, 2011
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. private static function get_embed_post(){
  2.     global $embed_post;
  3.     if($embed_post)
  4.         return $embed_post;
  5.  
  6.     $query = new WP_Query();
  7.     $embed_posts = $query->query($_SERVER["QUERY_STRING"]);
  8.  
  9.     $embed_post = $embed_posts ? self::object_to_array($embed_posts[0]) : array();
  10.  
  11.     return $embed_post;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement