Fatal Error.
-
The following code will cause a Fatal Error in PHP 7.4.
https://plugins.trac.wordpress.org/browser/scripts-n-styles/trunk/includes/class-sns-list-usage.phpIt seems that
$post
must also be passed in thedisplay_post_states
filter hook.
https://developer.wordpress.org/reference/hooks/display_post_states/I was able to avoid the above error by modifying as follows
$post_states = apply_filters( 'display_post_states', $post_states, $post );
If everything is ok, could you please merge the modifications?
- The topic ‘Fatal Error.’ is closed to new replies.