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

EWPP-2706: Make sure featured media title is not printed when field is empty. #1194

Merged
merged 2 commits into from
Nov 14, 2022

Conversation

nagyad
Copy link
Member

@nagyad nagyad commented Oct 25, 2022

No description provided.

@nagyad nagyad force-pushed the EWPP-2706 branch 2 times, most recently from 01fd577 to 547b0f8 Compare October 27, 2022 16:18
22Alexandra
22Alexandra previously approved these changes Oct 28, 2022
sergepavle
sergepavle previously approved these changes Oct 28, 2022
// If we don't have a title we do not render anything because there is
// no text and no image.
if (empty($title)) {
return [];
Copy link
Contributor

@upchuk upchuk Nov 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getRenderableText() and getRenderableTitle() add cache tags. So here you essentially kill all those cache tags.

@upchuk upchuk merged commit f9333e7 into 3.x Nov 14, 2022
@upchuk upchuk deleted the EWPP-2706 branch November 14, 2022 15:16
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.

4 participants