I'm getting the following error on Version 2010.0207 of this plugin, using FeedWordPress 2022.0222, running under PHP 8.2.10:
PHP Warning: Uninitialized string offset 0 in /my/path/wp-content/plugins/add-attribution-feedwordpress/add-attribution-feedwordpress.php on line 268
This is essentially source_link() getting passed a null, or a zero, or worse
On line 268, just below the function source_link( $atts ) declaration, just add:
if ( empty( $atts ) or ! is_array( $atts ) or empty( $atts[0] ) ) :
return NULL;
endif;
just before the switch.
This won't fix the issue, but at least stops PHP from complaining with a warning.
I'm getting the following error on Version 2010.0207 of this plugin, using FeedWordPress 2022.0222, running under PHP 8.2.10:
This is essentially
source_link()getting passed a null, or a zero, or worseOn line 268, just below the
function source_link( $atts )declaration, just add:just before the switch.
This won't fix the issue, but at least stops PHP from complaining with a warning.