diff -r f507feede89a -r 09a1c134465b web/wp-admin/edit.php --- a/web/wp-admin/edit.php Wed Dec 19 12:35:13 2012 -0800 +++ b/web/wp-admin/edit.php Wed Dec 19 17:46:52 2012 -0800 @@ -103,7 +103,7 @@ case 'delete': $deleted = 0; foreach( (array) $post_ids as $post_id ) { - $post_del = & get_post($post_id); + $post_del = get_post($post_id); if ( !current_user_can($post_type_object->cap->delete_post, $post_id) ) wp_die( __('You are not allowed to delete this item.') ); @@ -215,16 +215,19 @@ ); } -add_screen_option( 'per_page', array('label' => $title, 'default' => 20) ); +add_screen_option( 'per_page', array( 'label' => $title, 'default' => 20, 'option' => 'edit_' . $post_type . '_per_page' ) ); require_once('./admin-header.php'); ?>
-

labels->name ); ?> labels->add_new); ?> labels->name ); +if ( current_user_can( $post_type_object->cap->create_posts ) ) + echo ' ' . esc_html( $post_type_object->labels->add_new ) . ''; if ( ! empty( $_REQUEST['s'] ) ) - printf( '' . __('Search results for “%s”') . '', get_search_query() ); ?> -

+ printf( ' ' . __('Search results for “%s”') . '', get_search_query() ); +?>