[wpmu-trac] [WordPress MU Trac] #980: Ambiguous filter in get_blog_option

WordPress MU Trac wpmu-trac at lists.automattic.com
Fri May 8 10:14:40 GMT 2009


#980: Ambiguous filter in get_blog_option
-----------------------+----------------------------------------------------
 Reporter:  cafespain  |       Owner:  somebody
     Type:  defect     |      Status:  new     
 Priority:  normal     |   Milestone:          
Component:  General    |     Version:          
 Severity:  normal     |    Keywords:          
-----------------------+----------------------------------------------------
 The get_blog_option function filters the final result, prior to returning,
 with the same filter as get_option ( 'option_%key%' ).

 This is fine for get_option as code can assume the option is being
 returned for the current blog, however as the same filter is used for
 get_blog_option and the blog_id isn't passed - it is difficult to know
 which blog the option is from.

 Is it possible to change this filter to something like
 'blog_option_%key%', or to add a second parameter which can be checked for
 filters that require it, but ignored by older filters and those that don't
 need it.

 I can add a patch for this if wanted.

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


More information about the wpmu-trac mailing list