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

Fixed image downsize issue when lazyload disabled #881

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

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 🛎️!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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