600 | | <p class="textright"><a href="edit.php?post_status=draft" ><?php _e('View all'); ?></a></p> |
| 600 | <p class="textright"> |
| 601 | <?php |
| 602 | $post_types = get_post_types( array( 'public' => true ), 'objects' ); |
| 603 | foreach ( $post_types as $post_type ) { |
| 604 | if ( $post_type->name != 'attachment' ) { |
| 605 | $editurl = add_query_arg( array( 'post_status' => 'draft' ), admin_url( 'edit.php' ) ); |
| 606 | if ( 'post' !== $post_type->name ) |
| 607 | $editurl = add_query_arg( array( 'post_type' => $post_type->name ), $editurl ); |
| 608 | $linklist[] = '<a href="'.$editurl.'">' . esc_html( $post_type->labels->name ) . '</a> '; |
| 609 | } |
| 610 | } |
| 611 | ?> |
| 612 | <?php |
| 613 | $sep = _x( ' | ', 'list separator' ); |
| 614 | printf( 'View all draft %s', join( $sep, $linklist ) ); |
| 615 | ?> |
| 616 | </p> |