Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#38321 closed enhancement (fixed)

Add $network_id parameter to hooks in `update_network_option()`

Reported by: flixos90's profile flixos90 Owned by: jeremyfelt's profile jeremyfelt
Milestone: 4.7 Priority: normal
Severity: normal Version:
Component: Options, Meta APIs Keywords: has-patch has-dev-note
Focuses: multisite Cc:

Description

The actions and filters in update_network_option() do not receive the network ID passed to the function which makes using them worthless for several use-cases. The parameter should be added.

Attachments (1)

38321.diff (2.6 KB) - added by flixos90 7 years ago.

Download all attachments as: .zip

Change History (5)

@flixos90
7 years ago

#1 @flixos90
7 years ago

  • Keywords has-patch added; needs-patch removed

38321.diff introduces the $network_id parameter to the hooks in update_network_option().

#2 @jeremyfelt
7 years ago

  • Milestone changed from Awaiting Review to 4.7
  • Owner set to jeremyfelt
  • Status changed from new to reviewing

Looks good, thanks @flixos90.

Related: #38319, #38320, #38322.

#3 @jeremyfelt
7 years ago

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

In 38817:

Multisite: Add $network_id parameter to hooks in update_network_option().

Props flixos90.
Fixes #38321.

#4 @desrosj
4 years ago

  • Keywords has-dev-note added

Linking the dev note that was published here for reference: https://make.wordpress.org/core/2016/11/04/multisite-focused-changes-in-4-7/

Note: See TracTickets for help on using tickets.