X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/596d585e1dc1eb25bccd3781e37210a4e2504179..6c8f14c09105d0afa4c1574215c59b5021040e76:/wp-admin/edit.php diff --git a/wp-admin/edit.php b/wp-admin/edit.php index ab16be08..9eae3cf3 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -103,7 +103,7 @@ if ( $doaction ) { 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 @@ if ( 'post' == $post_type ) { ); } -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() ); +?>