WordPress.org

Ready to get started?Download WordPress

Forums

Sociable
Empty menu items under settings. (5 posts)

  1. Jeff Sterup
    Member
    Posted 1 year ago #

    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/

  2. Jeff Sterup
    Member
    Posted 1 year ago #

    Just updated to the newest version of the plugin. Version 4.3.3.2. The empty menu items still exist. For this version of the plugin the first line reference should now be 950 and the second line reference should be 955.

  3. locomo
    Member
    Posted 1 year ago #

    thanks for that Jeff!

  4. LiftYourHood
    Member
    Posted 1 year ago #

    I have this problem too.. can this be fixed in the next update release please?!?!

  5. Jeff Sterup
    Member
    Posted 1 year ago #

    This is still not fixed in the current version. Apparently they don't care about their bad programming.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.