Skip to content

Fixed image downsize issue when lazyload disabled #881

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

Merged
merged 1 commit into from
Mar 12, 2025
Merged

Conversation

girishpanchal30
Copy link
Contributor

All Submissions:

Changes proposed in this Pull Request:

Added a condition to skip image downsizing for REST API requests.

if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) {
	return $image;
}

Closes #704

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@pirate-bot
Copy link
Collaborator

Plugin build for a506af1 is ready 🛎️!

@selul selul merged commit e3ad1dc into development Mar 12, 2025
11 checks passed
@selul selul deleted the bugfix/704 branch March 12, 2025 10:09
@pirate-bot
Copy link
Collaborator

🎉 This PR is included in version 4.0.0 🎉

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 Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

Image downsize happening in editor content when lazyload is disabled
4 participants