| @@ 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'] ) ) |
|
| @@ 1026-1032 (lines=7) @@ | ||
| 1023 | } |
|
| 1024 | ||
| 1025 | // set additional wp_posts columns |
|
| 1026 | if ( empty( $post_data['post_title'] ) ) |
|
| 1027 | { |
|
| 1028 | ||
| 1029 | $url_filename=str_replace('%20',' ',$url_filename); |
|
| 1030 | ||
| 1031 | $post_data['post_title'] = basename($url_filename, "." . $url_type['ext']); // just use the original filename (no extension) |
|
| 1032 | } |
|
| 1033 | ||
| 1034 | // make sure gets tied to parent |
|
| 1035 | if ( empty( $post_data['post_parent'] ) ) |
|