Help, I broke the “Theme Customizer” (/wp-admin/customize.php)!
-
Wow, I am totally stumped and frustrated, guys! OK, so here’s what happened . . . .
I was trying to figure out how to make the WordPress admin bar/toolbar display on the “Theme Customizer” page/view. Someone suggested that I could try adding the following line of code to my “/wp-admin/customize.php” file, so I did:
add_filter('show_admin_bar', '__return_true');
Well, not only did it not work, it has seemingly irreparably broken the Theme Customizer functionality altogether. Now, when I try to load a Theme Customizer page (for example, /wp-admin/customize.php?et_customizer_option_set=theme), the page is entirely blank/white, except for this entirely unhelpful error message:
[an error occurred while processing this directive]
I have tried all of the following “fixes” (in order), to no avail:
1. reverted the “/wp-admin/customize.php” file to its previous state;
2. restored the theme from backup;
3. restored the database from backup;
4. restored all uploads from backup;
5. disabled all plugins;
6. re-installed WordPress core (4.1.8);
7. checked on the .htaccess file, which was not modified.Nothing works. How could one line of code in “/wp-admin/customize.php” — a line that has since been 100% reverted — cause this sort of damage? What am I missing? (I noticed that no files in the /wp-admin/ or /wp-includes/ folders were modified when I reinstalled WordPress core.)
Thank you very much in advance!
Jason
- The topic ‘Help, I broke the “Theme Customizer” (/wp-admin/customize.php)!’ is closed to new replies.