testers] Extensively test the export & import of the (new) settings! * If that all works fine, getting testers to export before and after upgrade will make testing easier. * * @todo [Yoast] The import for the RSS Footer plugin checks for data already entered via Yoast SEO, * the other import routines should do that too. */ $yform = Yoast_Form::get_instance(); $replace = false; if ( isset( $_POST['import'] ) || isset( $_GET['import'] ) ) { check_admin_referer( 'wpseo-import' ); if ( isset( $_POST['wpseo']['deleteolddata'] ) && $_POST['wpseo']['deleteolddata'] == 'on' ) { $replace = true; } if ( isset( $_POST['wpseo']['importwoo'] ) ) { $import = new WPSEO_Import_WooThemes_SEO( $replace ); } if ( isset( $_POST['wpseo']['importaioseo'] ) || isset( $_GET['importaioseo'] ) ) { $import = new WPSEO_Import_AIOSEO( $replace ); } if ( isset( $_POST['wpseo']['importheadspace'] ) ) { $import = new WPSEO_Import_External( $replace ); $import->import_headspace(); } if ( isset( $_POST['wpseo']['importrobotsmeta'] ) || isset( $_GET['importrobotsmeta'] ) ) { $import = new WPSEO_Import_External( $replace ); $import->import_robots_meta(); } if ( isset( $_POST['wpseo']['importrssfooter'] ) ) { $import = new WPSEO_Import_External( $replace ); $import->import_rss_footer(); } if ( isset( $_POST['wpseo']['importbreadcrumbs'] ) ) { $import = new WPSEO_Import_External( $replace ); $import->import_yoast_breadcrumbs(); } // Allow custom import actions. do_action( 'wpseo_handle_import' ); } if ( isset( $_FILES['settings_import_file'] ) ) { check_admin_referer( 'wpseo-import-file' ); $import = new WPSEO_Import(); } if ( isset( $import ) ) { /** * Allow customization of import&export message * @api string $msg The message. */ $msg = apply_filters( 'wpseo_import_message', $import->msg ); // Check if we've deleted old data and adjust message to match it. if ( $replace ) { $msg .= ' ' . __( 'The old data of the imported plugin was deleted successfully.', 'wordpress-seo' ); } if ( $msg != '' ) { echo '

', $msg, '

'; } } ?>

settings.zip and clicking "Import settings"', 'wordpress-seo' ); ?>



checkbox( 'include_taxonomy_meta', __( 'Include Taxonomy Metadata', 'wordpress-seo' ) ); ?>

', '' ); ?>

checkbox( 'importheadspace', __( 'Import from HeadSpace2?', 'wordpress-seo' ) ); $yform->checkbox( 'importaioseo', __( 'Import from All-in-One SEO?', 'wordpress-seo' ) ); $yform->checkbox( 'importwoo', __( 'Import from WooThemes SEO framework?', 'wordpress-seo' ) ); ?>
checkbox( 'deleteolddata', __( 'Delete the old data after import? (recommended)', 'wordpress-seo' ) ); ?>


checkbox( 'importrobotsmeta', __( 'Import from Robots Meta (by Yoast)?', 'wordpress-seo' ) ); $yform->checkbox( 'importrssfooter', __( 'Import from RSS Footer (by Yoast)?', 'wordpress-seo' ) ); $yform->checkbox( 'importbreadcrumbs', __( 'Import from Yoast Breadcrumbs?', 'wordpress-seo' ) ); /** * Allow option of importing from other 'other' plugins * @api string $content The content containing all import and export methods */ echo apply_filters( 'wpseo_import_other_plugins', '' ); ?>