Support » Plugin: flickr-slideshow-wrapper » Add isset() to fix WP_DEBUG header output

  • Resolved Cliff Seal

    (@cliffseal)


    Hi! Thanks for the plugin—just what a particular client needed.

    Would you consider easing development with WP_DEBUG turned on, by checking if $_POST['action_fssw'] is there first? I’ve remedied this personally by changing the first lines of the plugin to:

    if ( isset($_POST['action_fssw']) ) {
    	if ('insert' == $_POST['action_fssw']) {
    		update_option("fssw_width",$_POST['fssw_width']);
    		update_option("fssw_height",$_POST['fssw_height']);
    		update_option("fssw_border",$_POST['fssw_border']);
    		update_option("fssw_scroll",$_POST['fssw_scroll']);
    		update_option("fssw_sfli_w",$_POST['fssw_sfli_w']);
    		update_option("fssw_sfli_h",$_POST['fssw_sfli_h']);
    		update_option("fssw_userid",$_POST['fssw_userid']);
        }
    }

    If you have a better suggestion, please let me know. Thanks!

    http://wordpress.org/extend/plugins/flickr-slideshow-wrapper/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add isset() to fix WP_DEBUG header output’ is closed to new replies.