[wp-trac] [WordPress Trac] #41445: post_parent can prevent media from embedding correctly
WordPress Trac
noreply at wordpress.org
Sat Mar 25 06:39:46 UTC 2023
#41445: post_parent can prevent media from embedding correctly
-------------------------------------------------+-------------------------
Reporter: loboyle | Owner:
| adamsilverstein
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future
| Release
Component: Media | Version: 4.9.4
Severity: normal | Resolution:
Keywords: dev-feedback needs-unit-tests has- | Focuses: rest-api
testing-info needs-patch needs-testing |
-------------------------------------------------+-------------------------
Comment (by robinwpdeveloper):
== Test Report
This report validates that the indicated patch addresses the issue.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/839
=== Environment
- OS: macOS 11.2.3
- Web Server: Nginx
- PHP: 7.4.30
- WordPress: 6.3-alpha-55505-src
- Browser: Google Chrome 111.0.5563.110
- Theme: Twenty Twenty-Three
- Active Plugins:
- No plugins activated.
=== Actual Results
- ✅ Issue resolved with patch.
=== Additional Notes
Steps Followed:
- Step 1: Create a post (Post 1) with a featured image
- Step 2: Create another post (Post 2) with the same image used in Post 1.
Just select the image from media library. No need to upload.
- Step 3: Now trash Post 1.
- Step 4: Check <your-site-url>/wp-json/wp/v2/posts/secondPostID?_embed
- Step 5: Search wp:featuredmedia (2nd occurrence says: rest_forbidden)
- Step 6: Now apply the patch (nom run grunt
patch:https://github.com/WordPress/wordpress-develop/pull/839) and recheck
step 5. Now it shows media data (rest_forbidden issue resolved).
=== Supplemental Artifacts
Before: https://tinyurl.com/2mteyjcy
After: https://tinyurl.com/2mx722p8
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41445#comment:68>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list