Changeset 3281569
- Timestamp:
- 04/25/2025 08:02:50 AM (8 months ago)
- Location:
- rest-api-post-embeds/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
rest-api-post-embeds.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rest-api-post-embeds/trunk/readme.txt
r3186230 r3281569 1 1 === REST API Post Embeds === 2 2 Contributors: jeherve 3 Tags: shortcode, embed, posts, jetpack, api , wp api, rest api4 Stable tag: 1.5. 03 Tags: shortcode, embed, posts, jetpack, api 4 Stable tag: 1.5.1 5 5 Requires at least: 5.6 6 Tested up to: 6. 76 Tested up to: 6.8 7 7 8 8 Embed posts from your site or others' into your posts and pages. … … 141 141 == Changelog == 142 142 143 = 1.5.1 = 144 Release Date: April 25, 2025 145 146 * Featured Image: avoid caching issues with featured image data. Props [@dalacost](https://github.com/dalacost). 147 143 148 = 1.5.0 = 144 149 Release Date: March 15, 2021 -
rest-api-post-embeds/trunk/rest-api-post-embeds.php
r2495828 r3281569 5 5 * Description: Embed posts from your site or others' into your posts and pages. 6 6 * Author: Jeremy Herve 7 * Version: 1.5. 07 * Version: 1.5.1 8 8 * Author URI: https://jeremy.hu 9 9 * License: GPL2+ … … 604 604 605 605 // Look for data in our transient. If nothing, let's get a list of posts to display. 606 $cached_featured = get_transient( 'jeherve_post_embed_featured_' . $featured_id . '_' . $featured_query_hash ); 606 $transient_name = 'jeherve_post_embed_featured_' . $featured_id . '_' . $featured_query_hash; 607 $cached_featured = get_transient( $transient_name ); 607 608 if ( false === $cached_featured ) { 608 609 $featured_response = wp_remote_retrieve_body( … … 619 620 $featured_img_caching = apply_filters( 'jeherve_post_embed_featured_cache', 10 * HOUR_IN_SECONDS ); 620 621 621 set_transient( 'jeherve_post_embed_' . $featured_id . '_' . $featured_query_hash, $featured_response, $featured_img_caching );622 set_transient( $transient_name, $featured_response, $featured_img_caching ); 622 623 } else { 623 624 $featured_response = $cached_featured;
Note: See TracChangeset
for help on using the changeset viewer.