Forums

PHP error "Missing argument..." occurs in update_option_ action (1 post)

  1. softwud
    Member
    Posted 4 years ago #

    Hello,

    I'm trying to create a plugin that captures update_option_X action. However I am getting the "Missing argument..." error as described in Ticket #3125 which claims to have been fixed.

    I've modified the code in the wp-includes/functions.php file to see what is happening, and found that the $oldvalue and $_newvalue variables both contain the correct information, however this information when sent via do_action() doesn't arrive at my function (hence the missing argument 2 error).

    FYI $_newvalue should contain an array with the contents of the 'sidebars_widgets' WP option.

    Has this problem truely been fixed, and if so in what version? If not then is there a patch I can apply to make this work?

    Thanks,
    Paolo (SoftWUD)

Topic Closed

This topic has been closed to new replies.

About this Topic