Make WordPress Core

Opened 23 months ago

Closed 9 days ago

#25958 closed enhancement (fixed)

Allow wp.getUsersBlogs to return the primary_blog flag

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


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 23 months ago.
25958.patch (1023 bytes) - added by SergeyBiryukov 23 months ago.
Some cleanup

Download all attachments as: .zip

Change History (9)

comment:1 @markoheijnen23 months ago

  • Milestone changed from Awaiting Review to 3.8

Patch looks fine. Moved to 3.8 for consideration.

@SergeyBiryukov23 months ago

Some cleanup

comment:2 @SergeyBiryukov23 months ago

  • Keywords commit added

comment:3 @westi23 months ago

  • Keywords needs-unit-tests added; commit removed

Lets have some Unit Tests for wp.getUsersBlogs

comment:4 @markoheijnen23 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 @nacin22 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.

comment:6 @wonderboymusic9 days ago

  • Keywords mobile removed
  • Milestone changed from Future Release to 4.4
  • Owner changed from markoheijnen to wonderboymusic

comment:7 @wonderboymusic9 days ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 34574:

XML-RPC: In wp_xmlrpc_server::wp_getUsersBlogs(), return the isPrimary flag for each blog.

Props SergeyBiryukov, daniloercoli.
Fixes #25958.

Note: See TracTickets for help on using tickets.