Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#46437 closed enhancement (fixed)

Add populate_site_meta in populate_site_meta function

Reported by: spacedmonkey's profile spacedmonkey Owned by: desrosj's profile desrosj
Milestone: 5.2 Priority: normal
Severity: normal Version: 5.1
Component: Networks and Sites Keywords: good-first-bug has-patch commit
Focuses: multisite Cc:


The function populate_site_meta is very similar to populate_network_meta. The function populate_network_meta has this filter.

$sitemeta = apply_filters( 'populate_network_meta', $sitemeta, $network_id );

The populate_site_meta should have a populate_site_meta filter.

Attachments (1)

46437.diff (760 bytes) - added by davidbaumwald 5 years ago.

Download all attachments as: .zip

Change History (6)

5 years ago

#1 @onetarek
5 years ago

I see the attached patch 46437.diff
by @davidbaumwald

I think this code update is not related to this ticket.

#2 @onetarek
5 years ago

  • Keywords dev-feedback added

Sorry ! My mistake. patch 46437.diff by @davidbaumwald is perfect.

#3 @davidbaumwald
5 years ago

  • Keywords has-patch added; needs-patch removed

#4 @spacedmonkey
5 years ago

  • Component changed from General to Networks and Sites
  • Keywords commit added; dev-feedback removed
  • Milestone changed from Awaiting Review to 5.2
  • Type changed from defect (bug) to enhancement

This looks good to commit. Good work on the patch @davidbaumwald

Added to 5.2 milestone in hope it is committed.

#5 @desrosj
5 years ago

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

In 44912:

Networks and Sites: Introduce populate_site_meta filter.

The populate_site_meta filter can be used to modify the site meta added during the creation of a new site. This filter mirrors the approach used for networks in populate_network_meta.

Props spacedmonkey, davidbaumwald.
Fixes #46437.

Note: See TracTickets for help on using tickets.