Initialize a variable. props maxcutler. fixes #21058.

git-svn-id: https://develop.svn.wordpress.org/trunk@21158 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-06-28 19:04:42 +00:00
parent 801daca85c
commit 604f79dac0
1 changed files with 1 additions and 0 deletions

View File

@ -4376,6 +4376,7 @@ class wp_xmlrpc_server extends IXR_Server {
if ( !$posts_list )
return array();
$struct = array();
foreach ($posts_list as $entry) {
if ( !current_user_can( 'edit_post', $entry['ID'] ) )
continue;