Very near the top of the plugin’s code (version 3.0.1) you should find
define( 'DS_THEMES_DISABLE_ORIGINAL_MENU', 'TRUE' );
That’ll cause the ds_unset_themes_submenu function to run which both hides the original Themes menu (so you don’t have 2) and add a redirect for any request of the original /themes.php
So here’s what happens under twentyten in my install when I save a custom header.
When I go to “Appearance->Header” (which if the above is “TRUE” becomes /wp-admin/widgets.php?page=custom-header instead of /wp-admin/themes.php?page=custom-header ) and save the page returns to /wp-admin/widgets.php?page=custom-header.
What theme do you have causing a bjork? Maybe it needs a tweak in how it adds itself to the appearance menu or how its form action submits.
Search the offending theme’s functions.php for “themes.php” and see what you uncover.
For example, change something like this
<form name="custom-colors" id="custom-colors" action="themes.php" method="post">
to this
<form name="custom-colors" id="custom-colors" action="" method="post">
I’ve just updated this plugin to 3.0.1.2, minor tweaks. Just to make sure that what is in the repository is identical to what I have installed.
Rock on sir. Rock on.
I’ve grabbed up the new version and installed.
This particular theme comes from WPMU DEV and has the following entries in the option-functions.php file:
header("Location: themes.php?page=functions.php&saved=true");
and
header("Location: themes.php?page=functions.php&reset=true");
So my question now is: Is there anything wrong with doing things this way AND can I just change the references from themes.php to widgets.php everywhere in the files and be alright?
Also, this is a BuddyPress-enabled theme though I don’t know if that makes a difference either.
Thanks again! 😀
just change the references from themes.php to widgets.php everywhere in the files
Should work. But editing a theme’s files makes it a pain to go backwards, update theme, or remove plugin though.
Cool. Will test out. Probably not worth changing as Theme Options are not something that have to be changed all that often once things are set up the way you wan them.
Appreciate all the feedback. Thanks again and again!