Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow user to exclude global fallback image in feed settings #941

Merged
merged 2 commits into from
May 30, 2024

Conversation

Soare-Robert-Daniel
Copy link
Contributor

@Soare-Robert-Daniel Soare-Robert-Daniel commented May 21, 2024

Summary

The feed setting dashboard did not have a memory to remember if the user did not want a fallback image. Thus, if you have the global fallback set, the dashboard will always use it.

After removing the fallback image from the feed settings and returning later for a short edit, if you do not re-check the fallback image settings and save, the global fallback image will be used; thus, the imported feeds will have the reported problem.

To solve this, I used the value 0 as a marking for no fallback image. When the user presses the Remove button in feed settings, 0 will be used as the image ID. The code already considered 0 as no fallback image, but it was never enabled for the user to use it.

Will affect the visual aspect of the product

NO

Screenshots

2024-05-21_11-03-00.mp4

Test instructions

  • Set a fallback image in General Settings
  • Create a new feed; you should see the image from the global settings on the fallback image.
  • Remove the image, then save.
  • Re-enter the feed settings; you should not see the image from the global settings again.

Check before Pull Request is ready:

Closes https://github.com/Codeinwp/feedzy-rss-feeds-pro/issues/719

@Soare-Robert-Daniel Soare-Robert-Daniel self-assigned this May 21, 2024
@Soare-Robert-Daniel Soare-Robert-Daniel marked this pull request as ready for review May 21, 2024 08:39
@Soare-Robert-Daniel Soare-Robert-Daniel added the pr-checklist-skip Allow this Pull Request to skip checklist. label May 21, 2024
@pirate-bot pirate-bot added the pr-checklist-complete The Pull Request checklist is complete. (automatic label) label May 21, 2024
@pirate-bot
Copy link
Contributor

Plugin build for 079628c is ready 🛎️!

@kushh23
Copy link

kushh23 commented May 28, 2024

Hi @Soare-Robert-Daniel,

I was checking this PR on my site, and it didn't work as expected; I am still facing the same issue mentioned in the initial issue description. Please check this video screencast - https://vertis.d.pr/v/v6mwPb

Here are the test instance details -

Site url - https://feedzy.s3-tastewp.com/wp-admin/
Username- kushnamdev
password - gk(4PnNxsTYLt(BeFzFdTIvz

@Soare-Robert-Daniel
Copy link
Contributor Author

@kushh23 I was following the steps from your video, and the problem seems to be cached on the WordPress instance. Since you has the current version, when you replaced with the PR version, the cache did not updated since it was still on the same version.

Either, you check with a new instance or try to change the plugin version in the current instance. You can install something like WPIDE and change this number here

self::$version = '4.4.8';
, or do it locally and change the content from the ZIP like this: feedzy-rss-feeds 2.zip

You will see if it works when the value 0 is set to the input when you press Remove, like this:

Screenshot 2024-05-29 at 17 30 00

@vytisbulkevicius
Copy link
Contributor

I can't replicate the issue mentioned by @kushh23 and it works as expected to me, so merging this into release.

@vytisbulkevicius vytisbulkevicius merged commit 958e2b2 into development May 30, 2024
23 checks passed
@vytisbulkevicius vytisbulkevicius deleted the fix/global-fallback-img branch May 30, 2024 10:21
@pirate-bot
Copy link
Contributor

🎉 This PR is included in version 4.4.9 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-checklist-complete The Pull Request checklist is complete. (automatic label) pr-checklist-skip Allow this Pull Request to skip checklist. released Indicate that an issue has been resolved and released in a particular version of the product.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants