| @@ 260-266 (lines=7) @@ | ||
| 257 | } |
|
| 258 | ||
| 259 | // set additional wp_posts columns |
|
| 260 | if ( empty( $post_data['post_title'] ) ) |
|
| 261 | { |
|
| 262 | ||
| 263 | $url_filename=str_replace('%20',' ',$url_filename); |
|
| 264 | ||
| 265 | $post_data['post_title'] = basename($url_filename, "." . $url_type['ext']); // just use the original filename (no extension) |
|
| 266 | } |
|
| 267 | ||
| 268 | // make sure gets tied to parent |
|
| 269 | if ( empty( $post_data['post_parent'] ) ) |
|
| @@ 1252-1258 (lines=7) @@ | ||
| 1249 | } |
|
| 1250 | ||
| 1251 | // set additional wp_posts columns |
|
| 1252 | if ( empty( $post_data['post_title'] ) ) |
|
| 1253 | { |
|
| 1254 | ||
| 1255 | $url_filename=str_replace('%20',' ',$url_filename); |
|
| 1256 | ||
| 1257 | $post_data['post_title'] = basename($url_filename, "." . $url_type['ext']); // just use the original filename (no extension) |
|
| 1258 | } |
|
| 1259 | ||
| 1260 | // make sure gets tied to parent |
|
| 1261 | if ( empty( $post_data['post_parent'] ) ) |
|