| 116 | | check_admin_referer('press-this'); $post_ID = press_it(); ?> |
|---|
| 117 | | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 118 | | <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>> |
|---|
| 119 | | <head> |
|---|
| 120 | | <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> |
|---|
| 121 | | <title><?php _e('Press This') ?></title> |
|---|
| 122 | | <?php |
|---|
| 123 | | add_thickbox(); |
|---|
| 124 | | wp_enqueue_style('press-this'); |
|---|
| 125 | | wp_enqueue_style('press-this-ie'); |
|---|
| 126 | | wp_enqueue_style( 'colors' ); |
|---|
| 127 | | wp_enqueue_script('post'); |
|---|
| 128 | | |
|---|
| 129 | | do_action('admin_print_styles'); |
|---|
| 130 | | do_action('admin_print_scripts'); |
|---|
| 131 | | do_action('admin_head'); |
|---|
| 132 | | ?> |
|---|
| 133 | | </head> |
|---|
| 134 | | <body class="press-this"> |
|---|
| 135 | | <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_permalink( $post_ID); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $post_ID ); ?>" onclick="window.opener.location.replace(this.href); window.close();"><?php _e('Edit post'); ?></a> | <a href="#" onclick="window.close();"><?php _e('Close Window'); ?></a></p></div> |
|---|
| 136 | | <div id="footer"> |
|---|
| 137 | | <p><?php |
|---|
| 138 | | do_action('in_admin_footer', ''); |
|---|
| 139 | | $upgrade = apply_filters( 'update_footer', '' ); |
|---|
| 140 | | echo __('Thank you for creating with <a href="http://wordpress.org/">WordPress</a>'); |
|---|
| 141 | | ?></p> |
|---|
| 142 | | </div> |
|---|
| 143 | | <?php do_action('admin_footer', ''); ?> |
|---|
| 144 | | </body> |
|---|
| 145 | | </html> |
|---|
| 146 | | <?php die; |
|---|
| | 116 | check_admin_referer('press-this'); |
|---|
| | 117 | $post_ID = press_it(); |
|---|
| | 118 | wp_redirect('press-this.php?posted=' . $post_ID); |
|---|
| | 119 | die; |
|---|