Skip to content

Commit

Permalink
Use is_admin. Props markjaquith. see #5487
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@6510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Dec 28, 2007
1 parent f3e0750 commit 5bdf730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-includes/query.php
Expand Up @@ -642,7 +642,7 @@ function parse_query ($query) {
if ('' != $qv['preview'])
$this->is_preview = true;

if ( strpos($_SERVER['PHP_SELF'], 'wp-admin/') !== false )
if ( is_admin() )
$this->is_admin = true;

if ( false !== strpos($qv['feed'], 'comments-') ) {
Expand Down

0 comments on commit 5bdf730

Please sign in to comment.