Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit9ff4fc132a0899d9ff301808ba55597913c11ff8 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-07-14 15:48:01 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-07-14 15:48:01 +0300
Files83eb153c8ebf0f97b4e046da1ba39a1b6e8884a8
tues-interns-2020-quickfix-image-upload-edgecase.tar
tues-interns-2020-quickfix-image-upload-edgecase.tar.gz
tues-interns-2020-quickfix-image-upload-edgecase.zip
Parentf7dad169e3f5de8ff2141216dc15de99f7b8b45f (diff)
Fixed issue with certain cases where uploading images was kind of broken. quickfix-image-upload-edgecase
1 files changed, 1 insertions, 6 deletions
-rwxr-xr-xwp-content/plugins/dx-vehicles/vehicles-class.php7
diff --git a/wp-content/plugins/dx-vehicles/vehicles-class.php b/wp-content/plugins/dx-vehicles/vehicles-class.php
index 5d36f96..3a0b127 100755
--- a/wp-content/plugins/dx-vehicles/vehicles-class.php
+++ b/wp-content/plugins/dx-vehicles/vehicles-class.php
@@ -90,13 +90,8 @@ class Vehicles {
// Cycle through the $events_meta array.
// Note, in this example we just have one item, but this is helpful if you have multiple.
foreach ( $events_meta as $key => $value ) {
- // Don't store custom data twice
- if ( 'revision' === $post->post_type ) {
- return;
- }
-
if ( $value == null ) {
- return;
+ continue;
}
switch ( $key ) {