3 * Press This Display and Handler.
6 * @subpackage Press_This
9 define('IFRAME_REQUEST' , true);
11 /** WordPress Administration Bootstrap */
12 require_once( dirname( __FILE__ ) . '/admin.php' );
14 if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) {
16 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' .
17 '<p>' . __( 'Sorry, you are not allowed to create posts as this user.' ) . '</p>',
22 include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
23 $wp_press_this = new WP_Press_This();
24 $wp_press_this->html();