'; $content .= ''; if ($_REQUEST['photo_link']) $content .= ' '; if ($_REQUEST['content']) $content = $content . "\n".$_REQUEST['content']; break; case "video": $content = $_REQUEST['content']; break; } $quick['post_content'] = $content; $post_ID = wp_insert_post($quick, true); if ( is_wp_error($post_ID) ) wp_die($wp_error); return $post_ID; } function tag_div() { ?>

]+src=[\'"]([^\'" >]+?)[\'" >]/is'; preg_match_all($pattern, $content, $matches); if ( empty($matches[1]) ) return ''; $sources = array(); foreach ($matches[1] as $src) { if ( false !== strpos($src, '&') ) continue; if ( !strstr( $src, 'http://' ) ) $src = 'http://'.str_replace('//','/', $host['host'].'/'.$host['path'].'/'.$src); $sources[] = $src; } return "'" . implode("','", $sources) . "'"; } // Clean up the data being passed in $title = wp_specialchars(stripslashes($_GET['t'])); $selection = trim(wp_specialchars(str_replace("\n", ' ',stripslashes($_GET['s'])))); $url = clean_url($_GET['u']); ?> > <?php _e('Press This') ?>