X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/ff81ee6e8304a1982a3ec4f5b134764a29d502cf..7688c6ba71852cd89123b62b2d57683535e4702a:/wp-admin/edit-pages.php diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index 8d44faf7..f2633481 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -2,78 +2,102 @@ require_once('admin.php'); $title = __('Pages'); $parent_file = 'edit.php'; -$list_js = true; +wp_enqueue_script( 'listman' ); require_once('admin-header.php'); + +$post_stati = array( // array( adj, noun ) + 'publish' => array(__('Published'), __('Published pages')), + 'draft' => array(__('Draft'), __('Draft pages')), + 'private' => array(__('Private'), __('Private pages')) + ); + + +$post_status_label = __('Pages'); +$post_status_q = ''; +if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) { + $post_status_label = $post_stati[$_GET['post_status']][1]; + $post_status_q = '&post_status=' . $_GET['post_status']; +} + ?>
-

-

»

- -
-
- - - -
+ +

display_name )); +} +printf( _c( '%1$s%2$s%3$s|You can reorder these: 1: Pages, 2: by {s}, 3: matching {s}' ), $post_status_label, $h2_author, $h2_search ); +?>

+ +

+ + +
+ +
+ + +
+ +
+ + 1 ) : ?> + +
+ $editable_ids, 'show_option_all' => __('Any'), 'name' => 'author', 'selected' => isset($_GET['author']) ? $_GET['author'] : 0) ); ?> +
+ + + +
- -$show_post_type = 'page'; +get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static'"); +$all = !( $h2_search || $post_status_q ); if ($posts) { ?> - - - - +
+ + + + - - - - - - - - - - - - - + - -
ID; ?> - - post_modified); ?>ID' class='edit'>" . __('Edit') . ""; } ?>ID' class='delete' onclick=\"return deleteSomething( 'page', " . $id . ", '" . sprintf(__("You are about to delete the "%s" page.\\n"OK" to delete, "Cancel" to stop."), wp_specialchars(get_the_title('','',0), 1)) . "' );\">" . __('Delete') . ""; } ?>
+ + + + +
-

+

+?> -

»

+

- +