Make WordPress Core

Opened 6 years ago

Closed 6 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:

Description

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 6 years ago.

Download all attachments as: .zip

Change History (6)

@davidbaumwald
6 years ago

#1 @onetarek
6 years ago

I see the attached patch 46437.diff
by @davidbaumwald

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

#2 @onetarek
6 years ago

  • Keywords dev-feedback added

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

#3 @davidbaumwald
6 years ago

  • Keywords has-patch added; needs-patch removed

#4 @spacedmonkey
6 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
6 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.