diff options
| Commit | 9ff4fc132a0899d9ff301808ba55597913c11ff8 (patch) | |
|---|---|---|
| Author | 2020-07-14 15:48:01 +0300 | |
| Committer | 2020-07-14 15:48:01 +0300 | |
| Files | 83eb153c8ebf0f97b4e046da1ba39a1b6e8884a8 | |
| 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 | ||
| Parent | f7dad169e3f5de8ff2141216dc15de99f7b8b45f (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-x | wp-content/plugins/dx-vehicles/vehicles-class.php | 7 |
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 ) { |
