mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Embeds: Change the embed_autourls option filter from default_option_* to pre_option_* to avoid a DB query.
The option was removed from core in [21998], but still might be used by plugins. Props dlh. Fixes #38924. git-svn-id: https://develop.svn.wordpress.org/trunk@40360 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9b0de1429d
commit
7fcef3062b
@ -348,7 +348,7 @@ add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
|
||||
add_filter( 'default_option_link_manager_enabled', '__return_true' );
|
||||
|
||||
// This option no longer exists; tell plugins we always support auto-embedding.
|
||||
add_filter( 'default_option_embed_autourls', '__return_true' );
|
||||
add_filter( 'pre_option_embed_autourls', '__return_true' );
|
||||
|
||||
// Default settings for heartbeat
|
||||
add_filter( 'heartbeat_settings', 'wp_heartbeat_settings' );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user