Opened 10 years ago
Closed 10 years ago
#39524 closed defect (bug) (duplicate)
WP_Embed cache broken if post content is empty
| Reported by: | rasmusbe | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Embeds | Version: | 4.7 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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_recentlynot $this->usecache || $cached_recently
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
See #37597 on why this line is intentional.