sayontan / suffusion

The Suffusion Theme for WordPress
GNU General Public License v3.0
28 stars 18 forks source link

Deprecated message #65

Closed mbrsolution closed 9 months ago

mbrsolution commented 9 months ago

@marcissimus, I receive the following deprecated warning message.

Deprecated explode(): Passing null to parameter #2 ($string) of type string is deprecated wp-content/themes/suffusion/functions.php:932

This occurs when you go to Suffusion Options -> Skinning and you navigate to any of the following options listed below and you change from Theme Styles to Custom Styles.

Body Background Main Wrapper Post Background

I also carried out a test and changed back to Theme Styles save the settings to see if the warning message would disappear, and it did. So I can confirm it only happens when you select Custom Styles.

If you need any more information, please let me know.

Thank you.

marcissimus commented 9 months ago

Looks like you use PHP 8.1. I switched back to 8.0 since I got plenty of messages even from WordPress core. I suspect there will be more such cases all over the WordPress world.

Anyway, I created a fix for this case.