classes/lsx-banners-integration.php 1 location
|
@@ 248-255 (lines=8) @@
|
| 245 |
|
// assemble file data (should be built like $_FILES since wp_handle_sideload() will be using) |
| 246 |
|
$file_array['tmp_name'] = $tmp; // full server path to temp file |
| 247 |
|
|
| 248 |
|
if ( !empty( $filename) && " " != $filename ) |
| 249 |
|
{ |
| 250 |
|
$file_array['name'] = $filename . "." . $url_type['ext']; // user given filename for title, add original URL extension |
| 251 |
|
} |
| 252 |
|
else |
| 253 |
|
{ |
| 254 |
|
$file_array['name'] = $url_filename; // just use original URL filename |
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
// set additional wp_posts columns |
| 258 |
|
if ( empty( $post_data['post_title'] ) ) |
classes/class-importer.php 1 location
|
@@ 985-992 (lines=8) @@
|
| 982 |
|
// assemble file data (should be built like $_FILES since wp_handle_sideload() will be using) |
| 983 |
|
$file_array['tmp_name'] = $tmp; // full server path to temp file |
| 984 |
|
|
| 985 |
|
if ( !empty( $filename) && " " != $filename ) |
| 986 |
|
{ |
| 987 |
|
$file_array['name'] = $filename . "." . $url_type['ext']; // user given filename for title, add original URL extension |
| 988 |
|
} |
| 989 |
|
else |
| 990 |
|
{ |
| 991 |
|
$file_array['name'] = $url_filename; // just use original URL filename |
| 992 |
|
} |
| 993 |
|
|
| 994 |
|
// set additional wp_posts columns |
| 995 |
|
if ( empty( $post_data['post_title'] ) ) |