| @@ 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'] ) ) |
|
| @@ 1007-1013 (lines=7) @@ | ||
| 1004 | } |
|
| 1005 | ||
| 1006 | // set additional wp_posts columns |
|
| 1007 | if ( empty( $post_data['post_title'] ) ) |
|
| 1008 | { |
|
| 1009 | ||
| 1010 | $url_filename=str_replace('%20',' ',$url_filename); |
|
| 1011 | ||
| 1012 | $post_data['post_title'] = basename($url_filename, "." . $url_type['ext']); // just use the original filename (no extension) |
|
| 1013 | } |
|
| 1014 | ||
| 1015 | // make sure gets tied to parent |
|
| 1016 | if ( empty( $post_data['post_parent'] ) ) |
|