Ticket #15150: post.php.diff
File post.php.diff, 579 bytes (added by , 14 years ago) |
---|
-
wp-includes/post.php
1183 1183 $r = wp_parse_args( $args, $defaults ); 1184 1184 if ( empty( $r['post_status'] ) ) 1185 1185 $r['post_status'] = ( 'attachment' == $r['post_type'] ) ? 'inherit' : 'publish'; 1186 if ( ! empty($r['numberposts']) )1186 if ( ! empty($r['numberposts']) && empty($r['posts_per_page']) ) 1187 1187 $r['posts_per_page'] = $r['numberposts']; 1188 1188 if ( ! empty($r['category']) ) 1189 1189 $r['cat'] = $r['category'];