mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-08-31 03:53:15 +08:00
parent
1a6d2a027a
commit
6e30b24c82
1 changed files with 1 additions and 1 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue