| @@ 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'] ) ) |
|
| @@ 1221-1227 (lines=7) @@ | ||
| 1218 | } |
|
| 1219 | ||
| 1220 | // set additional wp_posts columns |
|
| 1221 | if ( empty( $post_data['post_title'] ) ) |
|
| 1222 | { |
|
| 1223 | ||
| 1224 | $url_filename=str_replace('%20',' ',$url_filename); |
|
| 1225 | ||
| 1226 | $post_data['post_title'] = basename($url_filename, "." . $url_type['ext']); // just use the original filename (no extension) |
|
| 1227 | } |
|
| 1228 | ||
| 1229 | // make sure gets tied to parent |
|
| 1230 | if ( empty( $post_data['post_parent'] ) ) |
|