WordPress.org

Ready to get started?Download WordPress

Forums

Socialize This
[resolved] To delete warning and notice (2 posts)

  1. eventualo
    Member
    Posted 3 years ago #

    I'm using this nice plugin (v.1.6.6) and I have WP_DEBUG always true for development.
    So I see some warnings that could be deleted quickly.
    Open socialize-this-php5-enviroment.php and edit these lines.

    41:
    FROM:
    $plugin_page = add_submenu_page('options-general.php', 'Socialize This', 'Socialize This', 10, ST_FILE, array($this, 'socialize_this_settings'));
    TO:
    $plugin_page = add_submenu_page('options-general.php', 'Socialize This', 'Socialize This', 'manage_options', ST_FILE, array($this, 'socialize_this_settings'));

    47;
    FROM:
    if($_GET['module'] == 'social_widgets'){
    TO:
    if( isset($_GET['module']) && $_GET['module'] == 'social_widgets'){

    69:
    FROM:
    }elseif($_GET['module'] == ''){
    TO:
    }elseif( !isset($_GET['module']) || $_GET['module'] == ''){

    133:
    FROM:
    if($_POST['Submit'] === 'Save Settings'){
    TO:
    if( isset($_POST['Submit']) && $_POST['Submit'] === 'Save Settings'){

    I hope it could be useful.

  2. Mike Rogers
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks! I've fixed the problems you pointed out in 2.0.0 :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic