From 41e21c4ecf2acd9d91191dd04cbd6f4a82c0a26d Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Tue, 11 Jun 2024 02:40:14 +0000 Subject: [PATCH] Options, Meta APIs: Lower priority of default autoload threshold filter. Lowers the priority at which `wp_filter_default_autoload_value_via_option_size()` is registered to run on the `wp_default_autoload_value()` filter. The default filter now runs at priority 5. This is to allow third party developers to modify whether an option is autoloaded using the default priority, 10, rather than require they register their code to run at a higher priority. Follow up to [57920]. Props peterwilsoncc, joemcgill. Fixes #42441. Built from https://develop.svn.wordpress.org/trunk@58381 git-svn-id: http://core.svn.wordpress.org/trunk@57830 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/default-filters.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/default-filters.php b/wp-includes/default-filters.php index b653d3a9af..2c182747a5 100644 --- a/wp-includes/default-filters.php +++ b/wp-includes/default-filters.php @@ -286,7 +286,7 @@ foreach ( } // Misc filters. -add_filter( 'wp_default_autoload_value', 'wp_filter_default_autoload_value_via_option_size', 10, 4 ); +add_filter( 'wp_default_autoload_value', 'wp_filter_default_autoload_value_via_option_size', 5, 4 ); // Allow the value to be overridden at the default priority. add_filter( 'option_ping_sites', 'privacy_ping_filter' ); add_filter( 'option_blog_charset', '_wp_specialchars' ); // IMPORTANT: This must not be wp_specialchars() or esc_html() or it'll cause an infinite loop. add_filter( 'option_blog_charset', '_canonical_charset' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 9056ceff05..17672f365b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-beta1-58380'; +$wp_version = '6.6-beta1-58381'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.