- $post = array();
- if ( 'page' == $_POST['post_type'] ) {
- $post[] = get_post($_POST['post_ID']);
- page_rows($post);
- } elseif ( 'post' == $_POST['post_type'] || in_array($_POST['post_type'], get_post_types( array('public' => true) ) ) ) {
- $mode = $_POST['post_view'];