WordPress.org

Make WordPress Core

Changeset 40360


Ignore:
Timestamp:
04/01/17 13:55:29 (5 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r39616 r40360  
    349349 
    350350// This option no longer exists; tell plugins we always support auto-embedding. 
    351 add_filter( 'default_option_embed_autourls', '__return_true' ); 
     351add_filter( 'pre_option_embed_autourls', '__return_true' ); 
    352352 
    353353// Default settings for heartbeat 
Note: See TracChangeset for help on using the changeset viewer.