The MU forums have moved to WordPress.org

Why is the blog_id 0 in sub-options tables (4 posts)

  1. Melodiefabrieknl
    Member
    Posted 17 years ago #

    When I am checking the sub-tables of the options settings per blog I notice that the blog_id = 0 for all tables. It feels redundant since the tables are named using the blog_id, but still: why is the blog_id field put on 0?

  2. -Gryzzly-
    Member
    Posted 15 years ago #

    Hello,

    up.
    I have exactly the same question ... 1 year later. Why not filling blog_id value with it proper ID ?

  3. MrBrian
    Member
    Posted 15 years ago #

    In my version of WPMU, which is the latest, the blog_id option does not exist in any of the option tables. I do know that WPMU extracts the blog_id from the wp_blogs table, not anywhere else, because you need to know the blog id before you can even look in the option's table considering they are named using the blog_id (ex. "wp_12_options").

  4. andrea_r
    Moderator
    Posted 15 years ago #

    It's possibly legacy code from single-user WP.

About this Topic

  • Started 17 years ago by Melodiefabrieknl
  • Latest reply from andrea_r