hackificator complains if you call include 'file.php' without the parens, needs to be include( 'file.php' )
See #27881. Built from https://develop.svn.wordpress.org/trunk@28479 git-svn-id: http://core.svn.wordpress.org/trunk@28306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -38,7 +38,7 @@ if ( !current_user_can('upload_files') )
|
||||
header('Content-Type: text/html; charset=' . get_option('blog_charset'));
|
||||
|
||||
if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
|
||||
include ABSPATH . 'wp-admin/includes/ajax-actions.php';
|
||||
include( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
|
||||
|
||||
send_nosniff_header();
|
||||
nocache_headers();
|
||||
|
||||
Reference in New Issue
Block a user