Cforms II: Save Button Disappears on WordPress 3.5 – Solution

Cforms 2 Disappearing Button

Bring it back with just a little effort

 

Here is the problem with the Cforms II Save/Update button disappearing when you upgrade your WordPress sites from 3.3x to 3.51.

There are a couple of steps to fix this:

  1. Change the method add_menu in $wp_admin_menu->add_menu to add_node. For each add_action call in the cforms plugin, you will need to change $wp_admin_bar->add_menu to $wp_admin_bar->add_node.
  2. Put the add_action(‘admin_menu_bar’, $func) calls into the main cforms.php file, rather than the other library files they are in. This is very important. Just cut and paste the add_action() calls and the add_item() function below the other add_actions() of cforms.php. Your Cforma II admin Save links should be showing up again!
  3. Now you just need a little conditional magic to make sure they only show up on the Cforms plugin admin page. Wrap your add_action(‘admin_menu_bar’, ‘add_items’); with a conditional such as this:
    if(strrpos($_SERVER['REMOTE_URI'],'cforms')) {
    	add_action('admin_menu_bar','add_items');
    }

There now, that wasn’t so bad, you can stop pulling your hair out over the upgrade.

High Five me by sharing: Pin on PinterestTweet about this on TwitterShare on LinkedInShare on FacebookShare on Reddit

Last updated on