]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/export.php
Wordpress 3.5
[autoinstalls/wordpress.git] / wp-admin / export.php
index 8257b5187b78ccc0e3d4ff5d7cdc70beee55e554..fc491b3b3aa894a111c37f85de6651a30183bdba 100644 (file)
@@ -16,7 +16,12 @@ if ( !current_user_can('export') )
 require_once('./includes/export.php');
 $title = __('Export');
 
 require_once('./includes/export.php');
 $title = __('Export');
 
-function add_js() {
+/**
+ * Display JavaScript on the page.
+ *
+ * @since 3.5.0
+ */
+function export_add_js() {
 ?>
 <script type="text/javascript">
 //<![CDATA[
 ?>
 <script type="text/javascript">
 //<![CDATA[
@@ -36,7 +41,7 @@ function add_js() {
 </script>
 <?php
 }
 </script>
 <?php
 }
-add_action( 'admin_head', 'add_js' );
+add_action( 'admin_head', 'export_add_js' );
 
 get_current_screen()->add_help_tab( array(
        'id'      => 'overview',
 
 get_current_screen()->add_help_tab( array(
        'id'      => 'overview',
@@ -89,6 +94,8 @@ if ( isset( $_GET['download'] ) ) {
                $args['content'] = $_GET['content'];
        }
 
                $args['content'] = $_GET['content'];
        }
 
+       $args = apply_filters( 'export_args', $args );
+
        export_wp( $args );
        die();
 }
        export_wp( $args );
        die();
 }
@@ -204,7 +211,9 @@ function export_date_options( $post_type = 'post' ) {
 <p><label><input type="radio" name="content" value="<?php echo esc_attr( $post_type->name ); ?>" /> <?php echo esc_html( $post_type->label ); ?></label></p>
 <?php endforeach; ?>
 
 <p><label><input type="radio" name="content" value="<?php echo esc_attr( $post_type->name ); ?>" /> <?php echo esc_html( $post_type->label ); ?></label></p>
 <?php endforeach; ?>
 
-<?php submit_button( __('Download Export File'), 'secondary' ); ?>
+<?php do_action( 'export_filters' ) ?>
+
+<?php submit_button( __('Download Export File') ); ?>
 </form>
 </div>
 
 </form>
 </div>