diff --git a/includes/frontend/class-edit-listing-page.php b/includes/frontend/class-edit-listing-page.php index 4360765b1..2c89747c2 100644 --- a/includes/frontend/class-edit-listing-page.php +++ b/includes/frontend/class-edit-listing-page.php @@ -178,7 +178,7 @@ private function do_listing_information_step() { 'mode' => 'edit', ]; - return $this->render( 'content', '
' ); + return $this->render( 'content', '' ); } /** diff --git a/includes/functions/deprecated.php b/includes/functions/deprecated.php index 955f4177a..3e6c3a9c3 100644 --- a/includes/functions/deprecated.php +++ b/includes/functions/deprecated.php @@ -830,8 +830,7 @@ function awpcp_resizer($filename, $dir) { break; } - imagedestroy($src); - imagedestroy($tmp); + unset( $src, $tmp ); return true; } diff --git a/includes/media/class-mime-types.php b/includes/media/class-mime-types.php index 65e5aa26c..82131fc95 100644 --- a/includes/media/class-mime-types.php +++ b/includes/media/class-mime-types.php @@ -39,7 +39,7 @@ private function get_file_mime_type_with_fileinfo( $filepath ) { $fileinfo = finfo_open( defined( 'FILEINFO_MIME_TYPE' ) ? FILEINFO_MIME_TYPE : FILEINFO_MIME ); $mime_type = finfo_file( $fileinfo, $filepath ); $mime_type_parts = explode( ';', $mime_type ); - finfo_close( $fileinfo ); + unset( $fileinfo ); return array_shift( $mime_type_parts ); } diff --git a/templates/frontend/submit-listing-page/listing-information-step.tpl.php b/templates/frontend/submit-listing-page/listing-information-step.tpl.php index 3626d1cea..076fd8ab2 100644 --- a/templates/frontend/submit-listing-page/listing-information-step.tpl.php +++ b/templates/frontend/submit-listing-page/listing-information-step.tpl.php @@ -11,4 +11,4 @@ awpcp_listing_form_steps_componponent()->show( $current_step, compact( 'transaction' ) ); } -?> +?>