Make WordPress Core

Changeset 13949


Ignore:
Timestamp:
04/02/2010 10:47:51 PM (15 years ago)
Author:
wpmuguru
Message:

have get_blog_prefix() default to the prefix of the current blog, see #12820

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r13725 r13949  
    625625     * @return string Blog prefix.
    626626     */
    627     function get_blog_prefix( $blog_id = 0 ) {
    628         if ( is_multisite() && $blog_id ) {
     627    function get_blog_prefix( $blog_id = -1 ) {
     628        if ( is_multisite() ) {
     629            if ( $blog_id < 0 )
     630                $blog_id = $this->blogid;
    629631            if ( defined( 'MULTISITE' ) && ( 0 == $blog_id || 1 == $blog_id ) )
    630632                return $this->base_prefix;
Note: See TracChangeset for help on using the changeset viewer.