Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#1627 closed defect (bug) (invalid)

Could user_nicename be returned in xmlrpc blogger.getUserInfo ?

Reported by: claudem's profile claudem Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.5.2
Component: General Keywords:
Focuses: Cc:

Description

Background: I need to generate the URL to an author's archive from an external app. The URL uses the sanitized version of the userid (user_nicename).

Generating the sanitized version of the userid from outside WordPress is not trivial, and not safe on the long run.

The easiest way to get this info is to make an xmlrpc call to obtain the user info. But currently, it does not return the user_nicename value.

Is it possible to add a value in the array of returned values in the blogger.getUserInfo call?

I include a patch from branches/1.5 that adds this value at the end of the array in xmlrpc.php. (This is the first time I use a patch so let me know if I made something wrong).

Attachments (1)

patch.txt (664 bytes) - added by claudem 17 years ago.
patch for branches/1.5

Download all attachments as: .zip

Change History (4)

@claudem
17 years ago

patch for branches/1.5

#1 @markjaquith
17 years ago

  • Milestone set to 1.6
  • Version changed from 1.5 to 1.5.2

No objection here, although the patch will be somewhat different for WP 1.6, due to changes in the Author table structure.

#2 @claudem
17 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Now that I have slept over this, I came to think that this may not be the right way to do this.

For special purpose xmprpc calls, I can create another method that I can call. Anyway, since no other weblog server would send me this info, I may as well call another method. So I am closing this one.

#3 @(none)
16 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.