Fix checking for whether WP_User object is actually a user. props filosofo, fixes #13903 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@15404 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-07-13 21:27:05 +00:00
parent dc3140a664
commit 97366f31f0
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1112,7 +1112,7 @@ function author_can( $post, $capability ) {
$author = new WP_User( $post->post_author );
if ( empty( $author ) )
if ( empty( $author->ID ) )
return false;
$args = array_slice( func_get_args(), 2 );