media_credit_at_end filter strips one credit in $credit_unique
-
The ‘media_credit_at_end’ filter does not supply a complete list of credits (empty $credit_unique when only one credit is available).
This appears to be due to the array_pop performed on line 481 which removes the last credit for the custom sprintf formats.
This can be fixed by adding $last_credit to $credit_unique before calling the ‘media_credit_at_end’ filter.
return apply_filters( 'media_credit_at_end', $content . '<div class="media-credit-end">' . $image_credit . '</div>', $content, array_merge($credit_unique, array($last_credit)) );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘media_credit_at_end filter strips one credit in $credit_unique’ is closed to new replies.