[Plugin: WordPress MU Domain Mapping] Needs updating for 3.3 - Details Inside (2 posts)

  1. Dunhamzzz
    Posted 4 years ago #

    Ok, so here's a bug waiting to happen, the options page for the Domain Mapping plugin uses the function add_site_option to save options, which is lazily used to add AND update options, however as of 3.3 it will now only add options as originally intended, and will not overwrite any existing options.

    You can see a brief explanation of this being introduced in 3.3 in add_site_option's Codex page:

    I guess this will hit a lot of plugins.

  2. Ron Rennick
    MultiSite Guru
    Posted 4 years ago #

    Thanks for the heads up :)

    it will now only add options as originally intended

    When WordPress MU was originally forked from WordPress, the add_option & update_option functions worked the same as the site_option variants do in WP 3.2. You could only use update_option if the option already existed. The site_option functions weren't transitioned to the update serving dual purpose when the option functions were.

Topic Closed

This topic has been closed to new replies.

About this Topic