Fix function return value used in write context.

This commit is contained in:
Brian Miyaji
2014-08-26 04:12:03 +10:00
parent 7e93edfee8
commit 7cb6143089
6 changed files with 12 additions and 6 deletions

View File

@@ -80,7 +80,8 @@ if ( class_exists( 'WP_Importer' ) ) {
case 2:
check_admin_referer( 'import-upload' );
if ( isset( $_POST['sp_import'] ) ):
$this->import( $_POST['sp_import'], array_values( array_filter( sp_array_value( $_POST, 'sp_columns', array( 'post_title' ) ) ) ) );
$columns = array_filter( sp_array_value( $_POST, 'sp_columns', array( 'post_title' ) ) );
$this->import( $_POST['sp_import'], array_values( $columns ) );
endif;
break;
endswitch;