/var/www/hkosl.com/aga/wp-content/plugins/wordpress-seo/admin/views/tabs/tool/wpseo-export.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Admin\Views
 */

if ( ! defined'WPSEO_VERSION' ) ) {
    
header'Status: 403 Forbidden' );
    
header'HTTP/1.1 403 Forbidden' );
    exit();
}

/* translators: %1$s expands to Yoast SEO */
$submit_button_value sprintf__'Export your %1$s settings''wordpress-seo' ), 'Yoast SEO' );

if ( 
filter_inputINPUT_POST'do_export' ) ) {
    
$export = new WPSEO_Export();
    
$export->export();
    return;
}

$wpseo_export_phrase sprintf(
    
/* translators: %1$s expands to Yoast SEO */
    
__'Export your %1$s settings here, to copy them on another site.''wordpress-seo' ),
    
'Yoast SEO'
);
?>

<p><?php echo esc_html$wpseo_export_phrase ); ?></p>
<form
    action="<?php echo esc_urladmin_url'admin.php?page=wpseo_tools&tool=import-export#top#wpseo-export' ) ); ?>"
    method="post"
    accept-charset="<?php echo esc_attrget_bloginfo'charset' ) ); ?>">
    <?php wp_nonce_fieldWPSEO_Export::NONCE_ACTION ); ?>
    <input type="hidden" name="do_export" value="1" />
    <button type="submit" class="button button-primary" id="export-button"><?php echo esc_html$submit_button_value ); ?></button>
</form>