From 94e529cee32b6ea1872a19e3da78292cb13e75a8 Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Tue, 4 May 2010 16:23:25 +0000 Subject: [PATCH] add export property to post types, see #10317 git-svn-id: http://svn.automattic.com/wordpress/trunk@14441 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index c9a0bf578d..18f5403155 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -53,6 +53,7 @@ function create_initial_post_types() { 'hierarchical' => false, 'rewrite' => false, 'query_var' => false, + 'can_export' => false, ) ); register_post_type( 'revision', array( @@ -810,7 +811,7 @@ function register_post_type($post_type, $args = array()) { $wp_post_types = array(); // Args prefixed with an underscore are reserved for internal use. - $defaults = array('label' => false, 'singular_label' => false, 'description' => '', 'publicly_queryable' => null, 'exclude_from_search' => null, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'hierarchical' => false, 'public' => false, 'rewrite' => true, 'query_var' => true, 'supports' => array(), 'register_meta_box_cb' => null, 'taxonomies' => array(), 'show_ui' => null, 'menu_position' => null, 'menu_icon' => null, 'permalink_epmask' => EP_PERMALINK ); + $defaults = array('label' => false, 'singular_label' => false, 'description' => '', 'publicly_queryable' => null, 'exclude_from_search' => null, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'hierarchical' => false, 'public' => false, 'rewrite' => true, 'query_var' => true, 'supports' => array(), 'register_meta_box_cb' => null, 'taxonomies' => array(), 'show_ui' => null, 'menu_position' => null, 'menu_icon' => null, 'permalink_epmask' => EP_PERMALINK, 'can_export' => true ); $args = wp_parse_args($args, $defaults); $args = (object) $args;