2008-05-12 21:08:39 +02:00
|
|
|
<?php
|
2008-08-16 09:27:34 +02:00
|
|
|
/**
|
|
|
|
* Press This Display and Handler.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Press_This
|
|
|
|
*/
|
|
|
|
|
2010-11-06 10:41:03 +01:00
|
|
|
define('IFRAME_REQUEST' , true);
|
2010-10-18 19:58:36 +02:00
|
|
|
|
2008-08-16 09:27:34 +02:00
|
|
|
/** WordPress Administration Bootstrap */
|
2013-09-25 02:17:40 +02:00
|
|
|
require_once( dirname( __FILE__ ) . '/admin.php' );
|
2010-10-18 19:58:36 +02:00
|
|
|
|
2012-11-28 23:28:20 +01:00
|
|
|
if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) )
|
2014-11-16 07:15:29 +01:00
|
|
|
wp_die( __( 'Cheatin’ uh?' ), 403 );
|
2008-06-23 23:16:39 +02:00
|
|
|
|
2015-05-28 23:40:27 +02:00
|
|
|
/**
|
|
|
|
* @global WP_Press_This $wp_press_this
|
|
|
|
*/
|
PressThis v2, first run. Props michael-arestad, stephdau, marcelomazza, DrewAPicture, iseulde, afercia, kraftbj, rachelbaker, AramZS, dd32. See #31373.
git-svn-id: https://develop.svn.wordpress.org/trunk@31534 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-25 02:49:26 +01:00
|
|
|
if ( empty( $GLOBALS['wp_press_this'] ) ) {
|
|
|
|
include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
|
2008-07-09 23:39:36 +02:00
|
|
|
}
|
2014-03-25 09:04:44 +01:00
|
|
|
|
PressThis v2, first run. Props michael-arestad, stephdau, marcelomazza, DrewAPicture, iseulde, afercia, kraftbj, rachelbaker, AramZS, dd32. See #31373.
git-svn-id: https://develop.svn.wordpress.org/trunk@31534 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-25 02:49:26 +01:00
|
|
|
$GLOBALS['wp_press_this']->html();
|