mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Use is_admin. Props markjaquith. see #5487
git-svn-id: http://svn.automattic.com/wordpress/trunk@6509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0aa5bf4862
commit
f635599744
@ -644,7 +644,7 @@ class WP_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-') ) {
|
||||
|
Loading…
Reference in New Issue
Block a user