Ticket #19774: class-wp-xmlrpc-server.php.patch
| File class-wp-xmlrpc-server.php.patch, 952 bytes (added by maxcutler, 17 months ago) |
|---|
-
wp-includes/class-wp-xmlrpc-server.php
2201 2201 if ( $content_struct['post_type'] == 'page' ) { 2202 2202 if ( $publish ) 2203 2203 $cap = 'publish_pages'; 2204 elseif ( 'publish' == $content_struct['page_status'])2204 elseif ( isset( $content_struct['page_status'] ) && 'publish' == $content_struct['page_status']) 2205 2205 $cap = 'publish_pages'; 2206 2206 else 2207 2207 $cap = 'edit_pages'; … … 2212 2212 } elseif ( $content_struct['post_type'] == 'post' ) { 2213 2213 if ( $publish ) 2214 2214 $cap = 'publish_posts'; 2215 elseif ( 'publish' == $content_struct['post_status'])2215 elseif ( isset( $content_struct['post_status'] ) && 'publish' == $content_struct['post_status']) 2216 2216 $cap = 'publish_posts'; 2217 2217 else 2218 2218 $cap = 'edit_posts';
