CoreFiles by mySites.guru
press-this.php29 lines, 703 bytes, from wordpress-4.6.zip
Raw History Compare with 4.5.33
md5
22abd6d933bba141754f7a84a9b2e9f5
sha1
0a9051eaa0b4e4a615b1270804f255646d204624
sha256
03da9da7b5b9e39598282e4863957a045a139ebdafa68b9c6a8e4ae8b569bfb6
<?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>' . __( 'Sorry, 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 40 releases, WordPress 4.6-beta1 to 4.6.30. See them all, or every version of this file.