Initialize a variable. props maxcutler. fixes #21058.
git-svn-id: http://core.svn.wordpress.org/trunk@21158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
63084e8efb
commit
e0012c7e67
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue