WordPress.org

Make WordPress Core

Ticket #5487: 5487.002.diff

File 5487.002.diff, 429 bytes (added by markjaquith, 14 years ago)

Don't we need to fix this too?

  • wp-includes/query.php

     
    644644                if ('' != $qv['preview'])
    645645                        $this->is_preview = true;
    646646
    647                 if ( strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false )
     647                if ( is_admin() )
    648648                        $this->is_admin = true;
    649649
    650650                if ( false !== strpos($qv['feed'], 'comments-') ) {