[wpmu-trac] [WordPress MU Trac] #1182: blog_id is set to 0 in wp_x_options?

WordPress MU Trac wpmu-trac at lists.automattic.com
Thu Dec 17 18:46:46 UTC 2009


#1182: blog_id is set to 0 in wp_x_options?
------------------------+---------------------------------------------------
 Reporter:  ancawonka   |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  component1  |     Version:          
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 Hello there,

 I'm trying to extract the blogname and blog URL from the database for
 several blogs at the same time, but I'm having a problem setting up the
 join, because the blog_id field in the options tables for each individual
 blog is set to 0.

 For example:

 mysql> select * from wp_2_options where option_name="blogname";

 +-----------+---------+-------------+-----------------+----------+

 | option_id | blog_id | option_name | option_value    | autoload |

 +-----------+---------+-------------+-----------------+----------+

 |         3 |       0 | blogname    | Human Resources | yes      |

 +-----------+---------+-------------+-----------------+----------+

 Shouldn't the blog_id be "2"?

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1182>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list