feat(rss): Skip non-distributable images#4052
Conversation
leogermani
left a comment
There was a problem hiding this comment.
Can we avoid code duplication and create a remove_non_distrubutable_images( $content ) method in the Republication_Tracker_Tool_Content in the RTT plugin, and use that instead?
Just need to extract the part of the code in get_republishable_content that does that
0ba8880 to
35a05d9
Compare
|
Hi @leogermani, I have implemented the changes. Extracted the image extraction logic into a separate method. Also refactore class-media to separate concerns as "Media distribution" setting of RTT was interfering with the functionality implemented via this PR. Please do have a look & review of this :- Automattic/republication-tracker-tool#258 Before reviewing this PR 🙇 .Thanks |
|
Hey @Takshil-Kunadia, good job getting this PR merged! 🎉 Now, the Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label. If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label. Thank you! ❤️ |
# [6.12.0-alpha.1](v6.11.2...v6.12.0-alpha.1) (2025-07-03) ### Bug Fixes * **menu:** don't hide sponsors menu if the user can't see the newspack dashboard ([#4041](#4041)) ([f988bd2](f988bd2)) * saving name when registering user ([#4050](#4050)) ([498028e](498028e)) * **woocommerce-memberships:** prevent membership expiry if there's another active subscription ([#4009](#4009)) ([6b42cbd](6b42cbd)) ### Features * **capabilities:** add caps for RSS Feeds ([#3908](#3908)) ([2620c54](2620c54)) * **collections:** add hierarchical fields ([#4051](#4051)) ([3f5a704](3f5a704)) * **collections:** allow overriding "collection" names and slugs ([#4033](#4033)) ([f5523b0](f5523b0)) * **collections:** support multiple CTAs in collections meta ([#4049](#4049)) ([d445444](d445444)) * modal checkout for My Account's reorders ([#3988](#3988)) ([fd347bc](fd347bc)) * **my-account:** subscription payment notice ([#4029](#4029)) ([4b78d7f](4b78d7f)) * **rss:** Custom Tracking snippet ([#4047](#4047)) ([2e682c5](2e682c5)) * **rss:** Hooks extending RSS ([#4055](#4055)) ([da97ff4](da97ff4)) * **rss:** Skip non-distributable images ([#4052](#4052)) ([9fdfe78](9fdfe78)) * show "deleted" label on segments if list, subscription, or plan was deleted [NPPM-2031] ([#4021](#4021)) ([4dec8bb](4dec8bb)) * **woocommerce:** rename WooCommerce Payments to WooPay ([#4048](#4048)) ([1528cad](1528cad))
|
🎉 This PR is included in version 6.12.0-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [6.12.0](v6.11.3...v6.12.0) (2025-07-14) ### Bug Fixes * **menu:** don't hide sponsors menu if the user can't see the newspack dashboard ([#4041](#4041)) ([f988bd2](f988bd2)) * saving name when registering user ([#4050](#4050)) ([498028e](498028e)) * **woocommerce-memberships:** prevent membership expiry if there's another active subscription ([#4009](#4009)) ([6b42cbd](6b42cbd)) ### Features * **capabilities:** add caps for RSS Feeds ([#3908](#3908)) ([2620c54](2620c54)) * **collections:** add hierarchical fields ([#4051](#4051)) ([3f5a704](3f5a704)) * **collections:** allow overriding "collection" names and slugs ([#4033](#4033)) ([f5523b0](f5523b0)) * **collections:** support multiple CTAs in collections meta ([#4049](#4049)) ([d445444](d445444)) * modal checkout for My Account's reorders ([#3988](#3988)) ([fd347bc](fd347bc)) * **my-account:** subscription payment notice ([#4029](#4029)) ([4b78d7f](4b78d7f)) * **rss:** Custom Tracking snippet ([#4047](#4047)) ([2e682c5](2e682c5)) * **rss:** Hooks extending RSS ([#4055](#4055)) ([da97ff4](da97ff4)) * **rss:** Skip non-distributable images ([#4052](#4052)) ([9fdfe78](9fdfe78)) * show "deleted" label on segments if list, subscription, or plan was deleted [NPPM-2031] ([#4021](#4021)) ([4dec8bb](4dec8bb)) * **woocommerce:** rename WooCommerce Payments to WooPay ([#4048](#4048)) ([1528cad](1528cad))
|
🎉 This PR is included in version 6.12.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
All Submissions:
Changes proposed in this Pull Request:
Closes https://app.asana.com/1/26890605006346/project/1210562189110460/task/1210629622176531?focus=true .
Adds a new option to RSS feeds that allows publishers to exclude non-distributable images from feed content. The filtering of content uses the same logic as the RTT plugin.
How to test the changes in this Pull Request:
Other information: