@@ 517-521 (lines=5) @@ | ||
514 | switch ( $response->code ) { |
|
515 | case 204: |
|
516 | return true; |
|
517 | case 404: |
|
518 | $error_message = ( 'post' === $what ) |
|
519 | ? __( 'The post you tried to delete does not exist.', 'wp-to-diaspora' ) |
|
520 | : __( 'The comment you tried to delete does not exist.', 'wp-to-diaspora' ); |
|
521 | break; |
|
522 | case 403: |
|
523 | $error_message = ( 'post' === $what ) |
|
524 | ? __( 'The post you tried to delete does not belong to you.', 'wp-to-diaspora' ) |
|
@@ 522-526 (lines=5) @@ | ||
519 | ? __( 'The post you tried to delete does not exist.', 'wp-to-diaspora' ) |
|
520 | : __( 'The comment you tried to delete does not exist.', 'wp-to-diaspora' ); |
|
521 | break; |
|
522 | case 403: |
|
523 | $error_message = ( 'post' === $what ) |
|
524 | ? __( 'The post you tried to delete does not belong to you.', 'wp-to-diaspora' ) |
|
525 | : __( 'The comment you tried to delete does not belong to you.', 'wp-to-diaspora' ); |
|
526 | break; |
|
527 | case 500: |
|
528 | default: |
|
529 | $error_message = _x( 'Unknown error occurred.', 'When an unknown error occurred in the WP2D_API object.', 'wp-to-diaspora' ); |