Make WordPress Core

Opened 13 years ago

Closed 11 years ago

#25958 closed enhancement (fixed)

Allow wp.getUsersBlogs to return the primary_blog flag

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

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

Download all attachments as: .zip

Change History (9)

#1 @markoheijnen
13 years ago

  • Milestone Awaiting Review → 3.8

Patch looks fine. Moved to 3.8 for consideration.

@SergeyBiryukov
13 years ago

Some cleanup

#2 @SergeyBiryukov
13 years ago

  • Keywords commit added

#3 @westi
13 years ago

  • Keywords needs-unit-tests added; commit removed

Lets have some Unit Tests for wp.getUsersBlogs

#4 @markoheijnen
13 years ago

  • Owner set to markoheijnen
  • Status new → 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

#5 @nacin
13 years ago

  • Keywords 3.9-early added
  • Milestone 3.8 → 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.

#6 @wonderboymusic
11 years ago

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

#7 @wonderboymusic
11 years ago

  • Resolution → fixed
  • Status assigned → 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.