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:18:11 +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:16:22 +01:00
|
|
|
wp_die( __( 'Cheatin’ uh?' ), 403 );
|
2008-06-23 23:16:39 +02:00
|
|
|
|
2015-05-28 23:41:30 +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.
Built from https://develop.svn.wordpress.org/trunk@31534
git-svn-id: http://core.svn.wordpress.org/trunk@31515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 02:50: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:05:15 +01:00
|
|
|
|
PressThis v2, first run. Props michael-arestad, stephdau, marcelomazza, DrewAPicture, iseulde, afercia, kraftbj, rachelbaker, AramZS, dd32. See #31373.
Built from https://develop.svn.wordpress.org/trunk@31534
git-svn-id: http://core.svn.wordpress.org/trunk@31515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-25 02:50:26 +01:00
|
|
|
$GLOBALS['wp_press_this']->html();
|