@@ -811,7 +811,8 @@ discard block |
||
| 811 | 811 | $latest_post = end( $diaspora_post_history ); |
| 812 | 812 | |
| 813 | 813 | // Only show if this post is showing a message and the post is a fresh share. |
| 814 | - if ( isset( $_GET['message'] ) && $post->post_modified === $latest_post['created_at'] ) { // phpcs:ignore |
|
| 814 | + if ( isset( $_GET['message'] ) && $post->post_modified === $latest_post['created_at'] ) { |
|
| 815 | +// phpcs:ignore |
|
| 815 | 816 | printf( |
| 816 | 817 | '<div class="updated notice is-dismissible"><p>%1$s <a href="%2$s" target="_blank">%3$s</a></p></div>', |
| 817 | 818 | esc_html__( 'Successfully posted to diaspora*.', 'wp-to-diaspora' ), |
@@ -829,7 +830,8 @@ discard block |
||
| 829 | 830 | */ |
| 830 | 831 | public function ignore_post_error(): void { |
| 831 | 832 | // If "Ignore" link has been clicked, delete the post error meta data. |
| 832 | - if ( isset( $_GET['wp2d_ignore_post_error'], $_GET['post'] ) ) { // phpcs:ignore |
|
| 833 | + if ( isset( $_GET['wp2d_ignore_post_error'], $_GET['post'] ) ) { |
|
| 834 | +// phpcs:ignore |
|
| 833 | 835 | delete_post_meta( absint( $_GET['post'] ), '_wp_to_diaspora_post_error' ); // phpcs:ignore |
| 834 | 836 | } |
| 835 | 837 | } |
@@ -863,7 +865,8 @@ discard block |
||
| 863 | 865 | $latest_post = end( $diaspora_post_history ); |
| 864 | 866 | |
| 865 | 867 | // Only show if this post is a fresh share. |
| 866 | - if ( get_post( $post_id )->post_modified === $latest_post['created_at'] ) { // phpcs:ignore |
|
| 868 | + if ( get_post( $post_id )->post_modified === $latest_post['created_at'] ) { |
|
| 869 | +// phpcs:ignore |
|
| 867 | 870 | wp_send_json_success( [ |
| 868 | 871 | 'message' => esc_html__( 'Successfully posted to diaspora*.', 'wp-to-diaspora' ), |
| 869 | 872 | 'action' => [ |
@@ -71,7 +71,8 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | private function constants(): void { |
| 73 | 73 | // Are we in debugging mode? |
| 74 | - if ( isset( $_GET['debugging'] ) ) { // phpcs:ignore |
|
| 74 | + if ( isset( $_GET['debugging'] ) ) { |
|
| 75 | +// phpcs:ignore |
|
| 75 | 76 | define( 'WP2D_DEBUGGING', true ); |
| 76 | 77 | } |
| 77 | 78 | |
@@ -376,7 +377,8 @@ discard block |
||
| 376 | 377 | * @todo esc_html |
| 377 | 378 | */ |
| 378 | 379 | public function check_pod_connection_status_callback(): void { |
| 379 | - if ( ! defined( 'WP2D_DEBUGGING' ) && isset( $_REQUEST['debugging'] ) ) { // phpcs:ignore |
|
| 380 | + if ( ! defined( 'WP2D_DEBUGGING' ) && isset( $_REQUEST['debugging'] ) ) { |
|
| 381 | +// phpcs:ignore |
|
| 380 | 382 | define( 'WP2D_DEBUGGING', true ); |
| 381 | 383 | } |
| 382 | 384 | |