Odin Kroeger
Forum Replies Created
-
Thanks a lot! I’ve switched jobs in the meantime, but will forward it to my former colleagues!
I can reproduce the issue w/ v3.8
Happy new year! Just checking in again, any updates on this? I can reproduce the issue w/ v.3.7.1.
Hey, I just thought I’d check in. Is there any progress on the issue or anything we could do to help?
Thanks a lot! I can give you access to our testing system, if that helps. If there’s anything we can do to help you find the issue, let us know.
I did a rollback to SSP 3.3.1, but the redirects persist. Thanks again for looking into this.
Thank you for your swift reply; and please apologise my delayed one, I’ve been on vacation and will report back on how rolling back to to pre-v3.4.0 worked as soon as I’m caught up on my emails.
Adding
$query->is_main_query()to the conditions of the Audiothek “pre_get_posts” hook resolved the issue. Still, may I suggest adding a check for the post type to the main loop ofLogService::prune_logs? I doubt I am the only one who is surprised that$query->is_home()holds true for cron jobs.Thanks a lot!
Thanks a lot for the reply! And, as far as I am concerned, there is no need for another filter.
Investigating further, I found the
ssp_html_player_datafilter. My bad.Just in case anybody else encounters a similar issue, this works for me:
add_filter('ssp_html_player_data', function (array $data): array { $src = &$data['album_art']['src']; if (preg_match('/no-album-art\.png$/', $src)) { try { $episode = new CourseEpisode($data['episode']); } catch (WrongPostTypeError $e) { return $data; } $image_id = $episode->getImageID(); if ($image_id !== null) { $image_src = wp_get_attachment_image_url($image_id); if ($image_src !== false) { $src = $image_src; } } } return $data; }, 10, 2);