Post filter fixes from mdawaffe. fixes #5249

git-svn-id: https://develop.svn.wordpress.org/trunk@6287 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-10-23 23:02:24 +00:00
parent 87fb5e4b49
commit e14f9e0d4d
6 changed files with 22 additions and 15 deletions
+3 -1
View File
@@ -15,7 +15,9 @@ switch ( $action = $_POST['action'] ) :
case 'add-post' :
check_ajax_referer( 'add-post' );
add_filter( 'post_limits', $limit_filter = create_function( '$a', '$b = split(" ",$a); if ( !isset($b[2]) ) return $a; $start = intval(trim($b[1])) / 20 * 15; if ( !is_int($start) ) return $a; $start += intval(trim($b[2])) - 1; return "LIMIT $start, 1";' ) );
wp_edit_posts_query( '_POST' );
wp_edit_posts_query( $_POST );
if ( !have_posts() )
die('1');
$posts_columns = wp_manage_posts_columns();
ob_start();
include( 'edit-post-rows.php' );