~canonical-sysadmins/wordpress/4.2.4

« back to all changes in this revision

Viewing changes to wp-admin/export.php

  • Committer: Paul Gear
  • Date: 2015-04-24 01:35:20 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: paul.gear@canonical.com-20150424013520-w4p9ksth76zh6opw
Merge new upstream release 4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
function export_add_js() {
25
25
?>
26
26
<script type="text/javascript">
27
 
//<![CDATA[
28
27
        jQuery(document).ready(function($){
29
28
                var form = $('#export-filters'),
30
29
                        filters = form.find('.export-filters');
37
36
                        }
38
37
                });
39
38
        });
40
 
//]]>
41
39
</script>
42
40
<?php
43
41
}
52
50
 
53
51
get_current_screen()->set_help_sidebar(
54
52
        '<p><strong>' . __('For more information:') . '</strong></p>' .
55
 
        '<p>' . __('<a href="http://codex.wordpress.org/Tools_Export_Screen" target="_blank">Documentation on Export</a>') . '</p>' .
 
53
        '<p>' . __('<a href="https://codex.wordpress.org/Tools_Export_Screen" target="_blank">Documentation on Export</a>') . '</p>' .
56
54
        '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
57
55
);
58
56
 
62
60
 
63
61
        if ( ! isset( $_GET['content'] ) || 'all' == $_GET['content'] ) {
64
62
                $args['content'] = 'all';
65
 
        } else if ( 'posts' == $_GET['content'] ) {
 
63
        } elseif ( 'posts' == $_GET['content'] ) {
66
64
                $args['content'] = 'post';
67
65
 
68
66
                if ( $_GET['cat'] )
78
76
 
79
77
                if ( $_GET['post_status'] )
80
78
                        $args['status'] = $_GET['post_status'];
81
 
        } else if ( 'pages' == $_GET['content'] ) {
 
79
        } elseif ( 'pages' == $_GET['content'] ) {
82
80
                $args['content'] = 'page';
83
81
 
84
82
                if ( $_GET['page_author'] )
152
150
<p><?php _e('Once you&#8217;ve saved the download file, you can use the Import function in another WordPress installation to import the content from this site.'); ?></p>
153
151
 
154
152
<h3><?php _e( 'Choose what to export' ); ?></h3>
155
 
<form action="" method="get" id="export-filters">
 
153
<form method="get" id="export-filters">
156
154
<input type="hidden" name="download" value="true" />
157
155
<p><label><input type="radio" name="content" value="all" checked="checked" /> <?php _e( 'All content' ); ?></label></p>
158
156
<p class="description"><?php _e( 'This will contain all of your posts, pages, comments, custom fields, terms, navigation menus and custom posts.' ); ?></p>