The MU forums have moved to WordPress.org

Bug(?) and fix: blog options tab -> Users must reg. to comment (1 post)

  1. nkinkade
    Member
    Posted 16 years ago #

    On the Options tab in the admin interface for Wordpress MU (1.2.3) there is a checkbox that says "Users must be registered and logged in to comment". If you check this box and click "Update", the option "Users can Register", which is available under the blog configuration behind the "Site Admin" tab, becomes unset.

    It appears that this happens because on the page options-general.php there is a hidden field called "page_options", which is apparently a list of all the options on the current page. The script wp-admin/options.php parses this list and then looks for a corresponding submitted variable with the same name. page_options contains the option users_can_register, but there is no form field for that options, so it gets set to blank value. There may be several fixes: 1) Add a form field on the options-general.php page for users_can_register. 2) Remove the users_can_register option from the field page_options. 3) make the script smart enough to not attempt to set an option for which a submitted values does not exist.

    Thanks,

    Nathan

About this Topic

  • Started 16 years ago by nkinkade