Changeset 46814
- Timestamp:
- 12/05/2019 01:46:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r46750 r46814 1638 1638 1639 1639 if ( ! $post_ID ) { 1640 return new IXR_Error( 401, __( 'Sorry, your entry could not be posted.' ) ); 1640 if ( $update ) { 1641 return new IXR_Error( 401, __( 'Sorry, the post could not be updated.' ) ); 1642 } else { 1643 return new IXR_Error( 401, __( 'Sorry, the post could not be created.' ) ); 1644 } 1641 1645 } 1642 1646 … … 1778 1782 1779 1783 if ( ! $result ) { 1780 return new IXR_Error( 500, __( ' The post cannot be deleted.' ) );1784 return new IXR_Error( 500, __( 'Sorry, the post could not be deleted.' ) ); 1781 1785 } 1782 1786 … … 2080 2084 2081 2085 if ( ! $term ) { 2082 return new IXR_Error( 500, __( 'Sorry, yourterm could not be created.' ) );2086 return new IXR_Error( 500, __( 'Sorry, the term could not be created.' ) ); 2083 2087 } 2084 2088 … … 2878 2882 2879 2883 if ( ! $result ) { 2880 return new IXR_Error( 500, __( 'Sorry, the user c annot be updated.' ) );2884 return new IXR_Error( 500, __( 'Sorry, the user could not be updated.' ) ); 2881 2885 } 2882 2886 … … 3377 3381 return (int) $cat_id->get_error_data(); 3378 3382 } else { 3379 return new IXR_Error( 500, __( 'Sorry, the new category failed.' ) );3383 return new IXR_Error( 500, __( 'Sorry, the category could not be created.' ) ); 3380 3384 } 3381 3385 } elseif ( ! $cat_id ) { 3382 return new IXR_Error( 500, __( 'Sorry, the new category failed.' ) );3386 return new IXR_Error( 500, __( 'Sorry, the category could not be created.' ) ); 3383 3387 } 3384 3388 … … 3789 3793 3790 3794 if ( ! $result ) { 3791 return new IXR_Error( 500, __( 'Sorry, the comment could not be edited.' ) );3795 return new IXR_Error( 500, __( 'Sorry, the comment could not be updated.' ) ); 3792 3796 } 3793 3797 … … 4980 4984 */ 4981 4985 public function blogger_getTemplate( $args ) { 4982 return new IXR_Error( 403, __( 'Sorry, th at file cannot be edited.' ) );4986 return new IXR_Error( 403, __( 'Sorry, this method is not supported.' ) ); 4983 4987 } 4984 4988 … … 4993 4997 */ 4994 4998 public function blogger_setTemplate( $args ) { 4995 return new IXR_Error( 403, __( 'Sorry, th at file cannot be edited.' ) );4999 return new IXR_Error( 403, __( 'Sorry, this method is not supported.' ) ); 4996 5000 } 4997 5001 … … 5053 5057 5054 5058 if ( ! $post_ID ) { 5055 return new IXR_Error( 500, __( 'Sorry, your entry could not be posted.' ) );5059 return new IXR_Error( 500, __( 'Sorry, the post could not be created.' ) ); 5056 5060 } 5057 5061 … … 5133 5137 5134 5138 if ( ! $result ) { 5135 return new IXR_Error( 500, __( ' For some strange yet very annoying reason, this post could not be edited.' ) );5139 return new IXR_Error( 500, __( 'Sorry, the post could not be updated.' ) ); 5136 5140 } 5137 5141 $this->attach_uploads( $actual_post['ID'], $postdata['post_content'] ); … … 5193 5197 5194 5198 if ( ! $result ) { 5195 return new IXR_Error( 500, __( ' The post cannot be deleted.' ) );5199 return new IXR_Error( 500, __( 'Sorry, the post could not be deleted.' ) ); 5196 5200 } 5197 5201 … … 5545 5549 5546 5550 if ( ! $post_ID ) { 5547 return new IXR_Error( 500, __( 'Sorry, your entry could not be posted.' ) );5551 return new IXR_Error( 500, __( 'Sorry, the post could not be created.' ) ); 5548 5552 } 5549 5553 … … 5890 5894 5891 5895 if ( ! $result ) { 5892 return new IXR_Error( 500, __( 'Sorry, your entry could not be edited.' ) );5896 return new IXR_Error( 500, __( 'Sorry, the post could not be updated.' ) ); 5893 5897 } 5894 5898
Note: See TracChangeset
for help on using the changeset viewer.