
If you run a WordPress blog and you have some security features, for example, Jeff Starr’s .htaccess firewall or BulletProof Security plugin, you may find that after upgrading to WordPress 3.5, your admin area has some of the below issues:
1. Admin menu flyouts not working
2. Can’t add media in pages/posts/or in the media area
3. Twenty Twelve theme did not load fully on first upgrade
As it turns out, this is due to the .htaccess security feature that blocks WordPress from loading jQuery. Going forward, WordPress will load its jQuery in the backend as followed:
http://example.com/wp-admin/load-scripts.php?c=0&load[]=jquery,utils,json2&ver=3.5
You notice the squared brackets in the request URL? That’s what’s causing the problem. If you disable your BPS plugin, or remove the following line in your .htaccess file, things should return to normal:
RewriteCond %{QUERY_STRING} \[ [NC,OR] RewriteCond %{QUERY_STRING} \] [NC]
It looks like WordPress developers have decided to load the script dynamically, so the request URL might be here to stay. If you have any questions, feel free to drop a line below.
Update: I also noticed that the default oEmbed media size is no longer available in Settings >> Media Settings. It looks like if your theme doesn’t set the default $content_width, WordPress will use 500px. Here’s where to modify the code in your function.php (edit the $content_width variable)
function my_content_width() { global $content_width; $content_width = xxx; } add_action( 'template_redirect', 'my_content_width' );
Thanks. I met with the same issues. My admin area is broken. a) the fly-out function on the dashboard menu isn’t working. b) some tubs are frozen (Screen Options, Help, etc) c) the Post Area is missing most of the menu items, except “media”, “visual” and “text” d) the post area doesn’t allow me to type stuff. Essentially, I can’t create and publish posts. I don’t have any security plugins like BulletProof Security. But I do have the likes of Disqus, Akismet, Caching, backup and SEO plugins. Your help is appreciated in advance.
Obert, after searching everywhere I found someone with the same problem who had the solution. Just add this line of code into your wp-config.php file … put it on the 2nd last line.
define(‘CONCATENATE_SCRIPTS’, false );
WordPress combines a bunch of scripts in the backend and loads them up all at once when you visit the admin area. When you specify that line in your wp-config.php, it stops WordPress from bunching the scripts together. It’s only a workaround, not a fix.
A true fix would be for WordPress to escape those special characters in the URL and use URL encoder instead.
Waiting for news on that matter. If you hear of something, please be kind enough to share it here.
Thanks!
The code resolved the issue. Thanks so much!
I had the same problem, after installing WordPress 3.5, and this last bit solved the problem for me, too.
Just writing to let you know. Thank you very much!
this solution saved my WP. Thanks a lot
Thank you that fixed my issue!
I have similar problem after upgrading to 3.5:
1. Flyouts not working,
2. Cannot add text to post
3. My theme options are broken and I can’t update it
I previously used BPS security but have deleted it long time ago.
Apparently, re-installing BPS security fixed my problems,
I deactivated and deleted it again afterwards and things are okay now.
Thanks!
Just wanted to say this worked for me too. My BPS Security plugin had been deactivated and them deleted prior to upgrading to 3.5. After experiencing the jQuery issues in the admin area (no flyouts, etc.) I re-installed the plugin, activated it, then deactivated it and deleted it. All’s fine now.
Just wanted to say this worked for me too. My BPS Security plugin had been deactivated and them deleted prior to upgrading to 3.5. After experiencing the jQuery issues in the admin area (no flyouts, etc.) I re-installed the plugin, activated it, then deactivated it and deleted it. All’s fine now.
Thanks for the helpful information.
Is it work for all version of wordpress?
Hi all
Hi have exactly the same problem 🙁
Who can help me ? because I didn’t understand what to do and I have just launch my new website.
Please help
Thank’s!
This works for me.
http://wordpress.stackexchange.com/questions/195291/wordpress-admin-menu-formatting-issue
function chromefix_inline_css()
{
wp_add_inline_style( ‘wp-admin’, ‘#adminmenu { transform: translateZ(0); }’ );
}
add_action(‘admin_enqueue_scripts’, ‘chromefix_inline_css’);
Hello, the whole thing is going fine here and ofcourse every one is sharing data, that’s in fact fine, keep up
Nice article but I still have a blank panel. I think I got hacked some time back (I haven’t even tried to access my admin account for ages!) as many of my index.php files had “function mCbXYW9BMUU($H1to6ZH …..” at the start of them. I doubt a genuine plug in did that. I have removed them but still a blank panel. Actual site still loads and all works fine, just the admin panel is blank. Even with debug mode on true still get absolutely nothing, no error message, naught. It is only my secondary site and I might just trash it but I was wanting to get in a see some stuff, and maybe keep it. Oh well.
This is a nice post about design a website. Lots of people can fall in the problem like this which is really unexpected, especially when someone upgraded their wordpress site with premium version. But right now yoast plugin is more popular for making website. Its easy to use and user friendly, which is really convenient for the works. Thanks for the sharing, so keep it up.