Would you please fix Deprecated Message of PHP7.4?
-
Hello,
After updating my website to PHP 7.4.13, I got a deprecated message on a page that uses wp-property on my website.
The Deprecated message is as follows.Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /home/XXX/XXX.com/public_html/wp-content/plugins/wp-property/lib/template-functions.php on line 500
Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/XXX/XXX.com/public_html/wp-content/plugins/wp-property/lib/classes/class-property-factory.php on line 280
I modified the Deprecated message as follows:
1. template-functions.php on line 500
Before
echo implode($features_html, ", ");
After
echo implode(", ", $features_html);
2. class-property-factory.php on line 280
Before
if( '_' == $k{0} ) {
After
if( '_' == $k[0] ) {
Thank you.
PHP: Ver.7.4.13
WordPress: Ver.5.7.2
wp-property: Ver.2.4.2
- The topic ‘Would you please fix Deprecated Message of PHP7.4?’ is closed to new replies.