| @@ 258-264 (lines=7) @@ | ||
| 255 | } |
|
| 256 | ||
| 257 | // set additional wp_posts columns |
|
| 258 | if ( empty( $post_data['post_title'] ) ) |
|
| 259 | { |
|
| 260 | ||
| 261 | $url_filename=str_replace('%20',' ',$url_filename); |
|
| 262 | ||
| 263 | $post_data['post_title'] = basename($url_filename, "." . $url_type['ext']); // just use the original filename (no extension) |
|
| 264 | } |
|
| 265 | ||
| 266 | // make sure gets tied to parent |
|
| 267 | if ( empty( $post_data['post_parent'] ) ) |
|
| @@ 1025-1031 (lines=7) @@ | ||
| 1022 | } |
|
| 1023 | ||
| 1024 | // set additional wp_posts columns |
|
| 1025 | if ( empty( $post_data['post_title'] ) ) |
|
| 1026 | { |
|
| 1027 | ||
| 1028 | $url_filename=str_replace('%20',' ',$url_filename); |
|
| 1029 | ||
| 1030 | $post_data['post_title'] = basename($url_filename, "." . $url_type['ext']); // just use the original filename (no extension) |
|
| 1031 | } |
|
| 1032 | ||
| 1033 | // make sure gets tied to parent |
|
| 1034 | if ( empty( $post_data['post_parent'] ) ) |
|