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

Fixes fatal error - function doesn't exist #275

Merged
merged 1 commit into from
Mar 18, 2022
Merged

Conversation

stesi561
Copy link
Contributor

@stesi561 stesi561 commented Mar 18, 2022

As per https://developer.wordpress.org/reference/functions/is_favicon/ this function was only added in 5.4.0
meaning CiviCRM now breaks if installed on a site running Wordpress < 5.4.0

Overview

Checks function exists before calling.

Before

Fatal error

After

You should probably upgrade your Wordpress site but if you are stranded on an old version due to plugin/theme incompatibilities at least you don't have a fatal error!

Technical Details

As per https://developer.wordpress.org/reference/functions/is_favicon/ this function was only added in 5.4.0
meaning CiviCRM now breaks if installed on a site running Wordpress < 5.4.0
@civicrm-builder
Copy link

Can one of the admins verify this patch?

@kcristiano
Copy link
Member

kcristiano commented Mar 18, 2022

@christianwach any thoughts?

Unless we increase the min WP version this makes sense to me and looks good.

@kcristiano
Copy link
Member

r-run

Can reproduce on WP 5.3. Fatal error on install.

Applying PR fixes the issue.

My want to switch branch and target RC.

@stesi561
Copy link
Contributor Author

Is that something that I need to do or is done by whomever is merging in?

@christianwach
Copy link
Member

Good catch @stesi561

@kcristiano Yes this would be good to merge and backport if possible.

@kcristiano kcristiano changed the base branch from master to 5.48 March 18, 2022 11:15
@kcristiano
Copy link
Member

targeting the RC branch as this is a regresion

@kcristiano kcristiano merged commit ea86cf5 into civicrm:5.48 Mar 18, 2022
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