You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running a network-wide sync, we saw numerous instances of Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-content/plugins/elasticpress/includes/classes/IndexHelper.php on line 297.
Some of the items we were syncing did not have label['plurals'] defined, leading to null being passed to esc_html( strtolower( $indexable->labels['plural'] ) ), spurring the warning. While this can certainly be avoided in the implementation, I also believe simple steps could be taken to safeguard against this warning.
The text was updated successfully, but these errors were encountered:
While running a network-wide
sync
, we saw numerous instances ofDeprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wp-content/plugins/elasticpress/includes/classes/IndexHelper.php on line 297
.Some of the items we were syncing did not have
label['plurals']
defined, leading tonull
being passed toesc_html( strtolower( $indexable->labels['plural'] ) )
, spurring the warning. While this can certainly be avoided in the implementation, I also believe simple steps could be taken to safeguard against this warning.The text was updated successfully, but these errors were encountered: