Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#38350 closed enhancement (fixed)

Replace get_blog_details() usage in wp_xmlrpc_server::_multisite_getUsersBlogs() with get_site()

Reported by: flixos90 Owned by: jeremyfelt
Priority: normal Milestone: 4.7
Component: XML-RPC Version:
Severity: normal Keywords: has-patch
Cc: Focuses: multisite

Description

See #37102

Attachments (1)

38350.diff​ (513 bytes ) - added by flixos90 10 years ago.

Download all attachments as: .zip

Change History (6)

#1 @flixos90
10 years ago

  • Keywords needs-unit-tests added

It looks like we don't have unit tests for XMLRPC multisite stuff. We should add some together with this change.

This ticket was mentioned in ​Slack in #core-multisite by richardtape. ​View the logs.


10 years ago

#3 follow-up: @flixos90
10 years ago

  • Keywords has-patch added; needs-patch needs-unit-tests removed
  • Milestone Awaiting Review → 4.7
  • Owner set to jeremyfelt
  • Status new → reviewing

38350.diff​ replaces the occurrence of get_blog_details() with get_site().

I think we should skip tests for XMLRPC here since it's not really possible to test the method at this point, especially since it's protected.

#4 in reply to: ↑ 3 @jeremyfelt
10 years ago

Replying to flixos90:

I think we should skip tests for XMLRPC here since it's not really possible to test the method at this point, especially since it's protected.

Agreed. I spent some time looking at this as well and the pain is not really worth the effort.

#5 @jeremyfelt
10 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 38934:

Multisite: Replace get_blog_details() in wp_xmlrpc_server::_multisite_getUsersBlogs().

Use get_site() instead.

Props flixos90.
Fixes #38350.

Note: See TracTickets for help on using tickets.