How to Fix Cheatin ‘uh? in WordPress
This error is encountered in the process of uploading images in wordpress, at first I got this error message, and now I also see this error again, so I write a few lines on this casual reference to relatives.
This is the error when users may not post or can not be determined Attach article, this error usually happens in such cases to use theme configuration change logo image, slide … how to fix this relatively simple, the way I used to use and upload that file and change the lines of this error message.
go to wp-admin and find the file called media-upload.php, you locate the line
if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post' , $_REQUEST['post_id'] ) )
wp_die( __( 'Cheatin’ uh?' ) );
you change the code a bit, instead wp_die you rather small with a message, for example:
if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post' , $_REQUEST['post_id'] ) )
echo 'Không xác định được ID bài viết hoặc bạn không được quyền upload'; //wp_die( __( 'Cheatin’ uh?' ) );
Okay, now you try to upload the image, it can add the above statements is true? this is only used when your site has one master, if others can not take advantage of this loophole to upload photos, but I think not so many opportunities where, where the upload function display in the admin where know.
If not, then you’re done configuration you pay it back to the old location code also.
If you copy my post, please remember to link the source to me.
This article is useful for you, press like on my help, encourage writing.