]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/edit-post-rows.php
Wordpress 3.0.4-scripts
[autoinstalls/wordpress.git] / wp-admin / edit-post-rows.php
index 37e58f0a302403e4d981772f963c00a7ca511126..2bf88416cd33c0ba84b8231d7793d6c9eea5e6af 100644 (file)
@@ -6,22 +6,29 @@
  * @subpackage Administration
  */
 
-if ( ! defined('ABSPATH') ) die();
+// don't load directly
+if ( !defined('ABSPATH') )
+       die('-1');
 ?>
-<table class="widefat post fixed" cellspacing="0">
+<table class="widefat <?php echo $post_type_object->hierarchical ? 'page' : 'post'; ?> fixed" cellspacing="0">
        <thead>
        <tr>
-<?php print_column_headers('edit'); ?>
+<?php print_column_headers( $current_screen ); ?>
        </tr>
        </thead>
 
        <tfoot>
        <tr>
-<?php print_column_headers('edit', false); ?>
+<?php print_column_headers($current_screen, false); ?>
        </tr>
        </tfoot>
 
        <tbody>
-<?php post_rows(); ?>
+<?php
+if ( $post_type_object->hierarchical )
+       page_rows($posts, $pagenum, $per_page);
+else
+       post_rows();
+?>
        </tbody>
 </table>
\ No newline at end of file