WordPress.org

Ready to get started?Download WordPress

Forums

Lightbox Plus ColorBox
Fix for PHP Notice in your Plugin (1 post)

  1. railszilla
    Member
    Posted 1 year ago #

    hello,

    your plugin has an undefinded variable ($theOptions)

    please update your plugin at line 248 as follow:

    /**
                * Retrieves the options from the database.
                *
                * @param mixed $optionsName
                */
                function getAdminOptions( $optionsName ) {
                    $savedOptions = get_option( $optionsName );
                    $theOptions = array();
                    if ( !empty( $savedOptions ) ) {
                        foreach ( $savedOptions as $key => $option ) {
                            $theOptions[$key] = $option;
                        }
                    }
                    update_option( $optionsName, $theOptions );
                    return $theOptions;
                }

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    Please see the line 255 which you have to add
    best regards

    http://wordpress.org/extend/plugins/lightbox-plus/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic