Fix: player not rendering for logged-out users — removed in_the_loop() guard

This commit is contained in:
Forkless
2026-05-10 20:39:01 +02:00
parent 2f01f17f36
commit 0f59e47d6b
+1 -1
View File
@@ -67,7 +67,7 @@ class Player {
*/
public function maybe_prepend_player( string $content ): string {
// Only on singular views.
if ( ! is_singular() || ! in_the_loop() || ! is_main_query() ) {
if ( ! is_singular() || ! is_main_query() ) {
return $content;
}