Ticket #5814: xmlrpc.php.patch

File xmlrpc.php.patch, 0.7 kB (added by malex, 10 months ago)
  • xmlrpc.php

    old new  
    986986                                $error_message = __( 'Sorry, you are not allowed to publish pages on this blog.' ); 
    987987                                $post_type = 'page'; 
    988988                        } 
    989                         elseif( $content_type['post_type'] == 'post' ) { 
     989                        elseif( $content_struct['post_type'] == 'post' ) { 
    990990                                // This is the default, no changes needed 
    991991                        } 
    992992                        else { 
     
    12071207                                $error_message = __( 'Sorry, you are not allowed to publish pages on this blog.' ); 
    12081208                                $post_type = 'page'; 
    12091209                        } 
    1210                         elseif( $content_type['post_type'] == 'post' ) { 
     1210                        elseif( $content_struct['post_type'] == 'post' ) { 
    12111211                                // This is the default, no changes needed 
    12121212                        } 
    12131213                        else {