2008-05-12 19:08:39 +00:00
|
|
|
<?php
|
2008-08-16 07:27:34 +00:00
|
|
|
/**
|
|
|
|
* Press This Display and Handler.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Press_This
|
|
|
|
*/
|
|
|
|
|
2010-11-06 09:41:03 +00:00
|
|
|
define('IFRAME_REQUEST' , true);
|
2010-10-18 17:58:36 +00:00
|
|
|
|
2008-08-16 07:27:34 +00:00
|
|
|
/** WordPress Administration Bootstrap */
|
2013-09-25 00:18:11 +00:00
|
|
|
require_once( dirname( __FILE__ ) . '/admin.php' );
|
2010-10-18 17:58:36 +00:00
|
|
|
|
2015-09-02 18:38:21 +00:00
|
|
|
if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) {
|
|
|
|
wp_die(
|
|
|
|
'<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' .
|
2016-06-29 15:16:29 +00:00
|
|
|
'<p>' . __( 'Sorry, you are not allowed to create posts as this user.' ) . '</p>',
|
2015-09-02 18:38:21 +00:00
|
|
|
403
|
|
|
|
);
|
|
|
|
}
|
2008-06-23 21:16:39 +00:00
|
|
|
|
2016-08-31 16:31:29 +00:00
|
|
|
include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
|
2016-08-31 06:29:28 +00:00
|
|
|
$wp_press_this = new WP_Press_This();
|
|
|
|
$wp_press_this->html();
|