CoreFiles by mySites.guru
press-this.php29 lines, 696 bytes, from wordpress-4.4.13.zip
Raw History Compare with 4.4.12
md5
f9a0c0a4ecf2b9496e9286f194f961fd
sha1
5a1b40bd05c524344fbb09b5b7aae737e3eb8d7e
sha256
a8f7cc468d696a40c0638bed36b995361eeb2d5da2c691657faba02ebc12170d
<?php
/**
 * Press This Display and Handler.
 *
 * @package WordPress
 * @subpackage Press_This
 */

define('IFRAME_REQUEST' , true);

/** WordPress Administration Bootstrap */
require_once( dirname( __FILE__ ) . '/admin.php' );

if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) {
	wp_die(
		'<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
		'<p>' . __( 'You are not allowed to create posts as this user.' ) . '</p>',
		403
	);
}

/**
 * @global WP_Press_This $wp_press_this
 */
if ( empty( $GLOBALS['wp_press_this'] ) ) {
	include( ABSPATH . 'wp-admin/includes/class-wp-press-this.php' );
}

$GLOBALS['wp_press_this']->html();

The same content is in 83 releases, WordPress 4.4-beta1 to 4.5.33. See them all, or every version of this file.