WordPress.org

Make WordPress Core

Ticket #37792: 37792-something-wrong-happened.patch

File 37792-something-wrong-happened.patch, 2.3 KB (added by ramiy, 5 years ago)
  • wp-includes/class-wp-xmlrpc-server.php

     
    15321532                        return new IXR_Error( 500, $post_ID->get_error_message() );
    15331533
    15341534                if ( ! $post_ID )
    1535                         return new IXR_Error( 401, __( 'Sorry, your entry could not be posted. Something wrong happened.' ) );
     1535                        return new IXR_Error( 401, __( 'Sorry, your entry could not be posted.' ) );
    15361536
    15371537                return strval( $post_ID );
    15381538        }
     
    19261926                        return new IXR_Error( 500, $term->get_error_message() );
    19271927
    19281928                if ( ! $term )
    1929                         return new IXR_Error( 500, __( 'Sorry, your term could not be created. Something wrong happened.' ) );
     1929                        return new IXR_Error( 500, __( 'Sorry, your term could not be created.' ) );
    19301930
    19311931                return strval( $term['term_id'] );
    19321932        }
     
    34763476                        return new IXR_Error(500, $result->get_error_message());
    34773477
    34783478                if ( !$result )
    3479                         return new IXR_Error(500, __('Sorry, the comment could not be edited. Something wrong happened.'));
     3479                        return new IXR_Error(500, __('Sorry, the comment could not be edited.'));
    34803480
    34813481                /**
    34823482                 * Fires after a comment has been successfully updated via XML-RPC.
     
    46304630                        return new IXR_Error(500, $post_ID->get_error_message());
    46314631
    46324632                if ( !$post_ID )
    4633                         return new IXR_Error(500, __('Sorry, your entry could not be posted. Something wrong happened.'));
     4633                        return new IXR_Error(500, __('Sorry, your entry could not be posted.'));
    46344634
    46354635                $this->attach_uploads( $post_ID, $post_content );
    46364636
     
    50895089                        return new IXR_Error(500, $post_ID->get_error_message());
    50905090
    50915091                if ( !$post_ID )
    5092                         return new IXR_Error(500, __('Sorry, your entry could not be posted. Something wrong happened.'));
     5092                        return new IXR_Error(500, __('Sorry, your entry could not be posted.'));
    50935093
    50945094                /**
    50955095                 * Fires after a new post has been successfully created via the XML-RPC MovableType API.
     
    54075407                        return new IXR_Error(500, $result->get_error_message());
    54085408
    54095409                if ( !$result )
    5410                         return new IXR_Error(500, __('Sorry, your entry could not be edited. Something wrong happened.'));
     5410                        return new IXR_Error(500, __('Sorry, your entry could not be edited.'));
    54115411
    54125412                // Only posts can be sticky
    54135413                if ( $post_type == 'post' && isset( $content_struct['sticky'] ) ) {