Completed
Push — php8-guzzle ( 5bc47d )
by Armando
12s
created
lib/class-wp2d-post.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -811,7 +811,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'  => [
Please login to merge, or discard this patch.
lib/class-wp2d.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.