Changeset 12597 for trunk/wp-admin/includes/post.php
- Timestamp:
- 01/04/2010 04:58:43 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r12513 r12597 847 847 } 848 848 849 $post_type_q = 'post_type=post'; 850 if ( isset($q['post_type']) && in_array( $q['post_type'], get_post_types( array('_show' => true) ) ) ) 851 $post_type_q = 'post_type=' . $q['post_type']; 852 853 849 854 $posts_per_page = (int) get_user_option( 'edit_per_page', 0, false ); 850 855 if ( empty( $posts_per_page ) || $posts_per_page < 1 ) … … 852 857 $posts_per_page = apply_filters( 'edit_posts_per_page', $posts_per_page ); 853 858 854 wp(" post_type=post&$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=$orderby");859 wp("$post_type_q&$post_status_q&posts_per_page=$posts_per_page&order=$order&orderby=$orderby"); 855 860 856 861 return array($post_stati, $avail_post_stati);
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)