• akbortoli

    (@akbortoli)


    This is the current function:

    function setUsername($username){
        $this->_options['username'] = sanitize_text_field($username);
        update_option( 'addthis_settings', $options);
    }
    
    function setPassword($password){
        $this->_options['password'] = sanitize_text_field($password);
        update_option( 'addthis_settings', $options);
    }

    It should be:

    function setUsername($username){
        $this->_options['username'] = sanitize_text_field($username);
        update_option( 'addthis_settings', $this->_options);
    }
    
    function setPassword($password){
        $this->_options['password'] = sanitize_text_field($password);
        update_option( 'addthis_settings', $this->_options);
    }

    https://wordpress.org/plugins/addthis/

Viewing 1 replies (of 1 total)
  • Thread Starter akbortoli

    (@akbortoli)

    File: addthis/includes/addthis_addjs.php
    Lines: 192 and 210

Viewing 1 replies (of 1 total)

The topic ‘setUsername and setPassword, undefined variable $options’ is closed to new replies.