[wp-trac] [WordPress Trac] #15181: Main blog in multisite wp 3.0 reading from wrong table

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 21 09:27:37 UTC 2010


#15181: Main blog in multisite wp 3.0 reading from wrong table
--------------------------+-------------------------------------------------
 Reporter:  micke021      |       Owner:                             
     Type:  defect (bug)  |      Status:  new                        
 Priority:  normal        |   Milestone:  Awaiting Review            
Component:  Multisite     |     Version:                             
 Severity:  critical      |    Keywords:  get_post_to_edit, multisite
--------------------------+-------------------------------------------------
 The main blog editor will load content from a subblog if a post or page
 with the same id as a post in the main blog exists in a subblog.
 The call to get_post_to_edit() in wp-admin/post.php doesn't return the
 correct post.

 A quick fix resolved the problem:
 431 in post.php -> $post = get_blog_post($wpdb->blogid, $id, OBJECT,
 'edit' );

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15181>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list