Opened 8 years ago
Closed 8 years ago
#38924 closed defect (bug) (fixed)
Getting 'embed_autourls' option still generates a DB query
Reported by: | dlh | Owned by: | peterwilsoncc |
---|---|---|---|
Milestone: | 4.8 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Embeds | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
I noticed this behavior while debugging a plugin that checks get_option( 'embed_autourls' )
.
default-filters.php
contains add_filter( 'default_option_embed_autourls', '__return_true' )
, but get_option()
will have already queried for the option before that filter is applied.
The attached patch would switch to pre_option_embed_autourls
to shortcircuit get_option()
before it queries for anything.
Attachments (1)
Change History (5)
#1
@
8 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 4.8
- Owner set to peterwilsoncc
- Status changed from new to assigned
- Version set to 3.5
Note: See
TracTickets for help on using
tickets.
Patch looks good to me.