From 6e30b24c82c414be4edbc2fda1c931617dc51dc4 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Wed, 10 Jun 2020 13:04:06 +0000 Subject: [PATCH] [CodeFactor] Apply fixes to commit 1a6d2a0 [ci skip] [skip ci] --- class/class-mainwp-child-posts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/class-mainwp-child-posts.php b/class/class-mainwp-child-posts.php index 4ccc410..856f904 100644 --- a/class/class-mainwp-child-posts.php +++ b/class/class-mainwp-child-posts.php @@ -974,7 +974,7 @@ class MainWP_Child_Posts { $post_gallery_images = unserialize( base64_decode( $_POST['post_gallery_images'] ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions -- base64_encode function is used for http encode compatible.. if ( is_array( $post_gallery_images ) ) { foreach ( $post_gallery_images as $gallery ) { - if \Exception( isset( $gallery['src'] ) ) { + if \ Exception( isset( $gallery['src'] ) ) { try { $upload = MainWP_Utility::upload_image( $gallery['src'], $gallery ); // Upload image to WP. if ( null !== $upload ) {