Advertisement
Guest User

Gravity Forms get_embed_post() bug 1.5.rc3.4

a guest
Jan 21st, 2011
59
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement