mirror of
https://github.com/forkless/Piperless.git
synced 2026-08-17 01:01:48 +02:00
Fix: player not rendering for logged-out users — removed in_the_loop() guard
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user