[wpmu-trac] [WordPress MU Trac] #1082: Error if Dashboard blog is different from default

WordPress MU Trac wpmu-trac at lists.automattic.com
Fri Aug 14 12:06:31 UTC 2009


#1082: Error if Dashboard blog is different from default
-----------------------------+----------------------------------------------
 Reporter:  brunoalves       |        Owner:  brunoalves
     Type:  defect           |       Status:  closed    
 Priority:  high             |    Milestone:            
Component:  Administration   |      Version:  2.8.2     
 Severity:  normal           |   Resolution:  fixed     
 Keywords:  dashboard admin  |  
-----------------------------+----------------------------------------------

Comment(by deannas):

 When I tried testing this (pre fix), I can successfully enter a blog in
 the dashboard field, save the page, and reload the page without error. I
 checked the database, and it's correctly storing the ID of the blog.

 It's only on the second update of the options page that the error occurs.
 The slash is appended to the blog name when the page reloads.

 I would think the best approach would be a modification of the fix
 suggested here and Donncha's back end fix in changeset 1936. Visually,
 people should not SEE an entry in there with a slash, even if it's
 sanitized on the back end before being stored. Doing the following on line
 91 of wpmu-options.php would handle the front end part of things.


 {{{
 $blogname = untrailingslashit(str_replace( '.', '', str_replace(
 $current_site->domain . $current_site->path, '', $details->domain .
 $details->path ) ));
 }}}

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1082#comment:8>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list