Make WordPress Core

Opened 3 years ago

Last modified 12 months ago

#55553 new enhancement

update_blog_option should accept autoload parameter

Reported by: giuse's profile giuse Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.9.3
Component: Options, Meta APIs Keywords: dev-feedback has-patch needs-testing-info
Focuses: multisite, performance Cc:

Description

The function update_blog_option doesn't accept any autoload parameter, even though it calls the function update_option that accepts an autoload parameter.

Change History (4)

This ticket was mentioned in PR #5994 on WordPress/wordpress-develop by @tabrisrp.


14 months ago
#1

  • Keywords has-patch added

Add autoload parameter to add_blog_option() and update_blog_option() for parity with add_option() and update_option().

Trac ticket: https://core.trac.wordpress.org/ticket/55553

#2 @tabrisrp
14 months ago

Added a PR to patch this, with parity for both add_blog_option() and update_blog_option()

#3 @mai21
12 months ago

  • Keywords needs-testing-info added

@giuse Thanks for opening the issue. What are the reproducible steps from the user's perspective?

#4 @giuse
12 months ago

@mai21

This is code. Looking at the functions update_blog_option https://developer.wordpress.org/reference/functions/update_blog_option/ and update_option https://developer.wordpress.org/reference/functions/update_option/ will be very clear. No steps to reproduce the issue are needed.
The issue occurs every time you need to assign the autoload parameter to the function update_blog_option but you can't do it because that function doesn't accept that parameter.

Note: See TracTickets for help on using tickets.