WordPress.org

Make WordPress Core

Opened 19 months ago

Last modified 18 months ago

#25958 assigned enhancement

Allow wp.getUsersBlogs to return the primary_blog flag

Reported by: daniloercoli Owned by: markoheijnen
Milestone: Future Release Priority: low
Severity: normal Version:
Component: XML-RPC Keywords: has-patch mobile needs-unit-tests 3.9-early
Focuses: Cc:

Description

Would be nice if wp.getUsersBlogs could return the primary blog flag in the response.
For example, when logging with the mobile apps, we can pre-select the primary blog as the default, and give the user a better experience just from the beginning.

Attachments (2)

local_history.patch (1.1 KB) - added by daniloercoli 19 months ago.
25958.patch (1023 bytes) - added by SergeyBiryukov 19 months ago.
Some cleanup

Download all attachments as: .zip

Change History (7)

comment:1 @markoheijnen19 months ago

  • Milestone changed from Awaiting Review to 3.8

Patch looks fine. Moved to 3.8 for consideration.

@SergeyBiryukov19 months ago

Some cleanup

comment:2 @SergeyBiryukov19 months ago

  • Keywords commit added

comment:3 @westi18 months ago

  • Keywords needs-unit-tests added; commit removed

Lets have some Unit Tests for wp.getUsersBlogs

comment:4 @markoheijnen18 months ago

  • Owner set to markoheijnen
  • Status changed from new to assigned

I'm assigning this one to myself and working on it tomorrow. In case someone beats me before it I will check the patch

comment:5 @nacin18 months ago

  • Keywords 3.9-early added
  • Milestone changed from 3.8 to Future Release

I wasn't actually aware that primary_blog was still a thing. I thought we ditched it when we got rid of the dashboard blog.

Note: See TracTickets for help on using tickets.