WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#35414 closed defect (bug) (fixed)

Fix get_current_site() docs

Reported by: ericlewis Owned by: johnbillion
Milestone: 4.5 Priority: normal
Severity: normal Version: 3.0
Component: Networks and Sites Keywords: has-patch
Focuses: docs, multisite Cc:

Description

The get_current_site() inline docs say that it returns the current site. It returns the current network.

Attachments (1)

35414.diff (511 bytes) - added by ericlewis 4 years ago.

Download all attachments as: .zip

Change History (3)

@ericlewis
4 years ago

#1 @ericlewis
4 years ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.5
  • Version set to 3.0

#2 @johnbillion
4 years ago

  • Owner set to johnbillion
  • Resolution set to fixed
  • Status changed from new to closed

In 36293:

Networks and Sites: Clarify the docblock for get_current_site() so it's clear that it returns the current network object, not anything to do with the current site. As a further exercise, the reader is invited to fix the nomenclature surrounding blogs, sites, and networks in WordPress.

Props ericlewis
Fixes #35414

Note: See TracTickets for help on using tickets.