Code Duplication    Length = 4-6 lines in 2 locations

classes/class-lsx-wetu-importer-banner-integration.php 1 location

@@ 265-268 (lines=4) @@
262
		}
263
264
		// set additional wp_posts columns
265
		if ( empty( $post_data['post_title'] ) ) {
266
			$url_filename = str_replace( '%20',' ',$url_filename );
267
			$post_data['post_title'] = basename( $url_filename, '.' . $url_type['ext'] );         // just use the original filename (no extension)
268
		}
269
270
		// make sure gets tied to parent
271
		if ( empty( $post_data['post_parent'] ) ) {

classes/class-lsx-wetu-importer.php 1 location

@@ 1153-1158 (lines=6) @@
1150
		}
1151
1152
		// set additional wp_posts columns
1153
		if ( empty( $post_data['post_title'] ) ) {
1154
1155
			$url_filename = str_replace( '%20',' ',$url_filename );
1156
1157
			$post_data['post_title'] = basename( $url_filename, '.' . $url_type['ext'] );         // just use the original filename (no extension)
1158
		}
1159
1160
		// make sure gets tied to parent
1161
		if ( empty( $post_data['post_parent'] ) ) {