WordPress.org

Make WordPress Core

Changeset 21794


Ignore:
Timestamp:
09/10/2012 05:50:13 PM (7 years ago)
Author:
ryan
Message:

Set the archived, spam, and deleted properties in the objects returned from get_blogs_of_user(). Props wonderboymusic. fixes #16225

File:
1 edited

Legend:

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

    r21747 r21794  
    674674        $blogs[ $blog_id ]->site_id = 1;
    675675        $blogs[ $blog_id ]->siteurl = get_option('siteurl');
     676        $blogs[ $blog_id ]->archived = 0;
     677        $blogs[ $blog_id ]->spam = 0;
     678        $blogs[ $blog_id ]->deleted = 0;
    676679        return $blogs;
    677680    }
     
    689692                'site_id'     => $blog->site_id,
    690693                'siteurl'     => $blog->siteurl,
     694                'archived'    => 0,
     695                'spam'        => 0,
     696                'deleted'     => 0
    691697            );
    692698        }
     
    715721                'site_id'     => $blog->site_id,
    716722                'siteurl'     => $blog->siteurl,
     723                'archived'    => 0,
     724                'spam'        => 0,
     725                'deleted'     => 0
    717726            );
    718727        }
Note: See TracChangeset for help on using the changeset viewer.