Make WordPress Core

Opened 5 months ago

Last modified 5 weeks ago

#42156 reviewing enhancement

Adjust the inline docs for get_sites() to avoid WP_Site_Query doc-duplication

Reported by: birgire Owned by: DrewAPicture
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6
Component: Networks and Sites Keywords: good-first-bug has-patch
Focuses: docs, multisite Cc:


The get_sites() is a wrapper for a WP_Site_Query object, so to avoid doc duplication, we should adjust the inline docs for that function.

Similar to what has been done for the documentation of the get_posts() function, that's a wrapper for a WP_Query object.

Code reference:







Related #42117

Attachments (2)

42156.diff (4.7 KB) - added by felipeelia 5 months ago.
42156.2.diff (4.7 KB) - added by felipeelia 5 months ago.

Download all attachments as: .zip

Change History (8)

#1 @birgire
5 months ago

I think this would be a good-first-bug, but I can't mark it as such.

#2 @johnbillion
5 months ago

  • Keywords needs-patch good-first-bug added

5 months ago

#3 @felipeelia
5 months ago

  • Keywords has-patch added; needs-patch removed

This is my first contribution, so please tell me if I'm doing something wrong :)

#4 @birgire
5 months ago

Thanks for the patch @felipeelia

That looks good to me - I'm just wondering if we should keep it in one line, instead of two.

Wasn't there any recommended maximum length of comments? It would be informative to check that.

5 months ago

#5 @felipeelia
5 months ago

Thanks @birgire!

I found a recommendation here. It can be 120 characters wide, maintaining it in one line we get just 108 (with indentation).

#6 @DrewAPicture
5 weeks ago

  • Owner set to DrewAPicture
  • Status changed from new to reviewing

Hi @felipeelia, thanks for the patches! I'll review them and get back to you with any feedback I might have.

Note: See TracTickets for help on using tickets.