WordPress.org

Make WordPress Core

Opened 8 months ago

Closed 7 months ago

#46437 closed enhancement (fixed)

Add populate_site_meta in populate_site_meta function

Reported by: spacedmonkey Owned by: 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:
PR Number:

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

Download all attachments as: .zip

Change History (6)

@davidbaumwald
8 months ago

#1 @onetarek
8 months ago

I see the attached patch 46437.diff
by @davidbaumwald

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

#2 @onetarek
8 months ago

  • Keywords dev-feedback added

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

#3 @davidbaumwald
7 months ago

  • Keywords has-patch added; needs-patch removed

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