Post filter fixes from mdawaffe. fixes #5249
git-svn-id: http://svn.automattic.com/wordpress/trunk@6287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user