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

This commit is contained in:
Forkless
2026-05-11 21:57:24 +02:00
parent 42542267de
commit d5bd564ae2
+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;
}