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
If left unattended, it's likely that people's error logs will be flooded with Notice | compact(): Undefined variable: post_id | 51 | wp-content/themes/hybrid-core-4.0/ext/get-the-image.php:298.
For example on a category page for me this notice trigger 1800 times per page load (many featured images).
While we get ourselves migrated, can you drop a hint on what could be a good strategy to optimize compact() out of $key = md5( serialize( compact( array_keys( $this->args ) ) ) ); caching?
I'm not entirely sure why it's there in the first place, why not just serialize $this->args directly?
lkraav
added a commit
to lkraav/hybrid-core
that referenced
this issue
Oct 23, 2019
compact()
behavior was changed in PHP 7.3 andget-the-image.php
usage of it should probably be rearchitected https://github.com/justintadlock/hybrid-core/blob/4.0.0/ext/get-the-image.php#L298If left unattended, it's likely that people's error logs will be flooded with
Notice | compact(): Undefined variable: post_id | 51 | wp-content/themes/hybrid-core-4.0/ext/get-the-image.php:298
.For example on a category page for me this notice trigger 1800 times per page load (many featured images).
https://www.php.net/manual/en/function.compact.php
EDIT https://core.trac.wordpress.org/ticket/44416
The text was updated successfully, but these errors were encountered: