Index: wp-includes/post.php
===================================================================
--- wp-includes/post.php	(revision 13615)
+++ wp-includes/post.php	(working copy)
@@ -15,63 +15,10 @@
  * Creates the initial post types when 'init' action is fired.
  */
 function create_initial_post_types() {
-	register_post_type( 'post', array(	'label' => __('Posts'),
-										'singular_label' => __('Post'),
-										'public' => true,
-										'show_ui' => false,
-										'_builtin' => true,
-										'_edit_link' => 'post.php?post=%d',
-										'capability_type' => 'post',
-										'hierarchical' => false,
-										'rewrite' => false,
-										'query_var' => false,
-										'supports' => array('post-thumbnails', 'excerpts', 'trackbacks', 'custom-fields', 'comments', 'revisions')
-									) );
+	$initial_post_types = apply_filters('initial_post_types',default_initial_post_types());
+	foreach($initial_post_types as $post_type => $attributes)
+		register_post_type($post_type,$attributes);
 
-	register_post_type( 'page', array(	'label' => __('Pages'),
-										'singular_label' => __('Page'),
-										'public' => true,
-										'show_ui' => false,
-										'_builtin' => true,
-										'_edit_link' => 'post.php?post=%d',
-										'capability_type' => 'page',
-										'hierarchical' => true,
-										'rewrite' => false,
-										'query_var' => false,
-										'supports' => array('post-thumbnails', 'page-attributes', 'custom-fields', 'comments', 'revisions')
-									) );
-
-	register_post_type( 'attachment', array('label' => __('Media'),
-											'public' => true,
-											'show_ui' => false,
-											'_builtin' => true,
-											'_edit_link' => 'media.php?attachment_id=%d',
-											'capability_type' => 'post',
-											'hierarchical' => false,
-											'rewrite' => false,
-											'query_var' => false,
-										) );
-
-	register_post_type( 'revision', array(	'label' => __('Revisions'),
-											'singular_label' => __('Revision'),
-											'public' => false,
-											'_builtin' => true,
-											'_edit_link' => 'revision.php?revision=%d',
-											'capability_type' => 'post',
-											'hierarchical' => false,
-											'rewrite' => false,
-											'query_var' => false,
-										) );
-
-	register_post_type( 'nav_menu_item', array(	'public' => false,
-												'show_ui' => false,
-												'_builtin' => true,
-												'capability_type' => 'post',
-												'hierarchical' => false,
-												'rewrite' => false,
-												'query_var' => false,
-											) );
-
 	register_post_status( 'publish', array(	'label' => _x('Published', 'post'),
 											'public' => true,
 											'_builtin' => true,
@@ -117,6 +64,64 @@
 }
 add_action( 'init', 'create_initial_post_types', 0 ); // highest priority
 
+function default_initial_post_types() {
+	$initial_post_types = array(
+		'post' => array('label' => __('Posts'),
+										'singular_label' => __('Post'),
+										'public' => true,
+										'show_ui' => false,
+										'_builtin' => true,
+										'_edit_link' => 'post.php?post=%d',
+										'capability_type' => 'post',
+										'hierarchical' => false,
+										'rewrite' => false,
+										'query_var' => false,
+										'supports' => array('post-thumbnails', 'excerpts', 'trackbacks', 'custom-fields', 'comments', 'revisions')
+									),
+	 'page' => array(	'label' => __('Pages'),
+										'singular_label' => __('Page'),
+										'public' => true,
+										'show_ui' => false,
+										'_builtin' => true,
+										'_edit_link' => 'post.php?post=%d',
+										'capability_type' => 'page',
+										'hierarchical' => true,
+										'rewrite' => false,
+										'query_var' => false,
+										'supports' => array('post-thumbnails', 'page-attributes', 'custom-fields', 'comments', 'revisions')
+									),
+	'attachment' => array('label' => __('Media'),
+												'public' => true,
+												'show_ui' => false,
+												'_builtin' => true,
+												'_edit_link' => 'media.php?attachment_id=%d',
+												'capability_type' => 'post',
+												'hierarchical' => false,
+												'rewrite' => false,
+												'query_var' => false,
+											),
+	'revision' => array('label' => __('Revisions'),
+											'singular_label' => __('Revision'),
+											'public' => false,
+											'_builtin' => true,
+											'_edit_link' => 'revision.php?revision=%d',
+											'capability_type' => 'post',
+											'hierarchical' => false,
+											'rewrite' => false,
+											'query_var' => false,
+											),
+	'nav_menu_item' => array(	'public' => false,
+														'show_ui' => false,
+														'_builtin' => true,
+														'capability_type' => 'post',
+														'hierarchical' => false,
+														'rewrite' => false,
+														'query_var' => false,
+											),
+	);
+	return $initial_post_types;
+}
+
 /**
  * Retrieve attached file path based on attachment ID.
  *
