web/wp-admin/export.php
changeset 204 09a1c134465b
parent 194 32102edaa81b
--- a/web/wp-admin/export.php	Wed Dec 19 12:35:13 2012 -0800
+++ b/web/wp-admin/export.php	Wed Dec 19 17:46:52 2012 -0800
@@ -16,7 +16,12 @@
 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[
@@ -36,7 +41,7 @@
 </script>
 <?php
 }
-add_action( 'admin_head', 'add_js' );
+add_action( 'admin_head', 'export_add_js' );
 
 get_current_screen()->add_help_tab( array(
 	'id'      => 'overview',
@@ -89,6 +94,8 @@
 		$args['content'] = $_GET['content'];
 	}
 
+	$args = apply_filters( 'export_args', $args );
+
 	export_wp( $args );
 	die();
 }
@@ -204,7 +211,9 @@
 <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>