Make WordPress Core

Opened 5 years ago

Closed 4 years ago

#37932 closed defect (bug) (fixed)

Add annotations for extended `WP_Site` properties

Reported by: ocean90 Owned by: ryanplas
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.6
Component: Networks and Sites Keywords: good-first-bug has-patch commit
Focuses: docs, multisite Cc:


Since #36935 you can access blogname, siteurl, post_count and home via WP_Site. But none of those are annotated like $network_id or $id (https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-site.php?rev=38369&marks=18-19#L10).

Attachments (1)

37932.patch (440 bytes) - added by ryanplas 4 years ago.

Download all attachments as: .zip

Change History (5)

#1 @DrewAPicture
5 years ago

  • Focuses docs added

4 years ago

#2 @ryanplas
4 years ago

  • Keywords has-patch added; needs-patch removed

#3 @ocean90
4 years ago

  • Keywords commit added
  • Milestone changed from Future Release to 4.7
  • Owner set to ryanplas
  • Status changed from new to assigned

#4 @jeremyfelt
4 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 38630:

Multisite: Add annotations for extended WP_Site properties.

Props ryanplas.
Fixes #37932.

Note: See TracTickets for help on using tickets.