This pull request addresses a compatibility issue with PHP 8.2 in the mrss_featured_image function. The PHP Notice "Only variables should be assigned by reference" was triggered due to the unnecessary use of the reference assignment operator &.
Changes Made:
Removed the & operator from the line $thumbnail = & get_post( $thumb_id );
In PHP 5 and later versions, objects are assigned by reference by default. The explicit reference assignment is thus redundant and can cause notices in PHP 8.2.
This pull request addresses a compatibility issue with PHP 8.2 in the mrss_featured_image function. The PHP Notice "Only variables should be assigned by reference" was triggered due to the unnecessary use of the reference assignment operator &.
Changes Made:
Removed the
&
operator from the line$thumbnail = & get_post( $thumb_id );
In PHP 5 and later versions, objects are assigned by reference by default. The explicit reference assignment is thus redundant and can cause notices in PHP 8.2.