Support » Networking WordPress » On Database Upgrade an option deleted

  • Resolved Paul


    In a multisite installation I have created a custom option with the name “language”.

    My weird issue is that whenever the WordPress Database Upgrade is running this specific option deleted. This doesn’t happen if the option have a different name.

    Are there any conflicts with the name “language”?

Viewing 1 replies (of 1 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Yes, “language” is an old option that WordPress used to have. As a deprecated option, it will be deleted on an upgrade.

    There are many such options, so it is advisable to not use those names. The full list can be found in /wp-admin/includes/schema.php, in the populate_options() function. Look for $unusedoptions.

    In general, it is always a good idea to prefix the names of things with something unique, to avoid conflicts.

Viewing 1 replies (of 1 total)
  • The topic ‘On Database Upgrade an option deleted’ is closed to new replies.