strange language in option
-
I lost my wp site and when looking for fixes found this. do I remove it or change it?
if ( !current_user_can( $capability ) )
wp_die( __( ‘Cheatin’ uh?’ ), 403 );
thanks in advance for your help
-
Hi rwillig
Please provide more information about your issue.
http://codex.wordpress.org/How_to_Write_a_Great_Support_RequestIn what file did you find that code?
it my option.php file…I lost access to my wordpress after trying out a new theme and am attempting to recover it
Is option.php a theme file?
Try switching to the Twenty Fifteen theme by renaming the current (newly added) theme’s folder in wp-content/themes using FTP or whatever file management application your host provides.
if my wp domain has 404 not found, what would be a good tutorial to go about finding out how to fix it. I was using the changing the site url tutorial when I found this..was looking for site url in options.php but there is nothing that says siteurl in the options.php at all..it looks like this…
if ( !current_user_can( $capability ) )
wp_die(__(‘Cheatin’ uh?’));// Handle admin email change requests
if ( is_multisite() ) {
if ( ! empty($_GET[ ‘adminhash’ ] ) ) {
$new_admin_details = get_option( ‘adminhash’ );
$redirect = ‘options-general.php?updated=false’;
if ( is_array( $new_admin_details ) && $new_admin_details[ ‘hash’ ] == $_GET[ ‘adminhash’ ] && !empty($new_admin_details[ ‘newemail’ ]) ) {
update_option( ‘admin_email’, $new_admin_details[ ‘newemail’ ] );
delete_option( ‘adminhash’ );
delete_option( ‘new_admin_email’ );
$redirect = ‘options-general.php?updated=true’;
}
wp_redirect( admin_url( $redirect ) );
exit;
} elseif ( ! empty( $_GET[‘dismiss’] ) && ‘new_admin_email’ == $_GET[‘dismiss’] ) {
delete_option( ‘adminhash’ );
delete_option( ‘new_admin_email’ );
wp_redirect( admin_url( ‘options-general.php?updated=true’ ) );
exit;
}
}if ( is_multisite() && !is_super_admin() && ‘update’ != $action )
wp_die(__(‘Cheatin’ uh?’));The wp-admin/options.php is a WordPress core file.
Never ever change WordPress core files. You’ll end up having more problems than the one you have now.
I’m not sure what this file has to do with your problem of losing access after trying out a new theme.
1) Did you try switching to the Twenty Fifteen theme?
2) Do you have access to your site’s wp-admin?
3) Did you change the site url of your site in wp-admin > Settings > General?yesterday my sister tried to look at the site and it was just a sample wordpress site. I went in and switched my them back to twentyfourteen, and the message “cheata” came up on my screen, After that I went in to settings and looked at site url, it was laid out different than I remembered so I attempted to move it back from http to www, and it would not let me, then I did a foolish thing and changed it from blog4 to blog, after that I cannot even sign in to change anything. I just get 404 not found. I am attempting to fix that in my file manager, but since I am a codex dummy, and the options.php looks nothing like the tutorial is telling me to look for… I have no idea what to do!
Aha, try setting the urls back with one of these methods:
http://codex.wordpress.org/Changing_The_Site_URLWhat tutorial were you using?
http://codex.wordpress.org/Changing_The_Site_URL is thetutorial I am using but there is nothing in the options.php that has my siteurl, so I don’t know how to add it back in…
Try using the Edit functions.php method:
http://codex.wordpress.org/Changing_The_Site_URL#Edit_functions.phpI don’t see anything about the options.php file in that tutorial.
It was under “changing the url directly from the database”
I tried the function.php and it did not work, other than I have a blank page now instead of not found.I think I may have found the problem.. in my config, the site url reads like this
[code redacted]
shouldn't that be my site information?
You just posted your site’s confidential info on the internet, you need to change those ASAP!
I removed the code you posted as it contained confidential information.
Can you post the content functions.php file with the edits you made (that caused a blank page) to a pastebin and post a link to it here.
http://pastebin.com/changed.
After two days of trying to fix this o my own, what is a good reccomendation for getting my site fixed as inexpensively as possible…
Try one of the following sites:
- The topic ‘strange language in option’ is closed to new replies.