Opened 7 years ago
Closed 7 years ago
#39524 closed defect (bug) (duplicate)
WP_Embed cache broken if post content is empty
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.7 |
Component: | Embeds | Keywords: | |
Focuses: | Cc: |
Description
Steps to reproduce:
- Create a post with empty post content and a metafield containing a Youtube link
- Run apply_filters('the_content', $meta_field_content);
Expected result:
Youtube-embed code
Actual result:
Youtube link (not embed)
Possible cause:
Invalid if-state on line 221 in class-wp-embed.php
Should be $this->usecache && $cached_recently
not $this->usecache || $cached_recently
Change History (2)
Note: See
TracTickets for help on using
tickets.
See #37597 on why this line is intentional.