WordPress.org

Make WordPress Core

Opened 10 months ago

Closed 9 months 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:

Description

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 9 months ago.

Download all attachments as: .zip

Change History (5)

#1 @DrewAPicture
10 months ago

  • Focuses docs added

@ryanplas
9 months ago

#2 @ryanplas
9 months ago

  • Keywords has-patch added; needs-patch removed

#3 @ocean90
9 months ago

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

#4 @jeremyfelt
9 months 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.