WordPress.org

Support

Support » Plugins and Hacks » Sociable » [Plugin: Sociable] Empty menu items under settings.

[Plugin: Sociable] Empty menu items under settings.

  • There are some empty links under Settings in the admin created by this plugin. Three links are created and the title is empty for all three so it just creates empty items in the settings menu. These links are unnecessary and can easily be done away with and replaced with the proper menu items.
    This is the code that creates the empty links on line 987 of /wp-content/plugins/sociable/includes/class-sociable_Admin_Options.php

    $page[] =	add_options_page( "","", 'manage_options', 'sociable_select' , array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
    
    	$page[] =	add_options_page( "","", 'manage_options', 'sociable_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
    
    	$page[] =	add_options_page( "","", 'manage_options', 'skyscraper_options' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) );

    A little farther down the actual menu items are created. Comment out the the three lines referenced above and replace the menu_page function calls with the following starting on line 993.

    $page[] = add_menu_page(__( 'Sociable Options' ), __( 'Select Sociable Plugin' ), 'manage_options', 'Sociable_Options', array( 'sociable_Admin_Options' , 'Select_Sociable_Page' ) );
    
        // Add a submenu to the custom top-level menu:
    
        $page[] = add_submenu_page('Sociable_Options',  __( 'Sociable Options' ), __( 'Sociable Options' ), 'manage_options', 'Create_Options_Page' , array( 'sociable_Admin_Options' , 'Create_Options_Page' ) );
    
        // Add a second submenu to the custom top-level menu:
    
        $page[] = add_submenu_page('Sociable_Options',  __( 'Skyscraper Options' ), __( 'Skyscraper Options' ), 'manage_options', 'Create_Options_Page_Skycraper' , array( 'sociable_Admin_Options' , 'Create_Options_Page_Skycraper' ) );

    http://wordpress.org/extend/plugins/sociable/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Sociable] Empty menu items under settings.’ is closed to new replies.
Skip to toolbar