X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/699231ae09f7057a4d0000cdf32e50a3df6a04ca..9b5673a7aae863ab45c3b73460060352c5b3810b:/wp-admin/includes/template.php diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index e3981f22..fd7e76f9 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -847,7 +847,7 @@ function get_hidden_columns($screen) { * @param string $screen */ function inline_edit_row( $screen ) { - global $current_user, $mode; + global $mode; if ( is_string($screen) ) { $screen = array('id' => 'edit-' . $screen, 'base' => 'edit', 'post_type' => $screen ); @@ -928,7 +928,7 @@ endif; // post_type_supports title ?> post_type, 'author' ) ) : - $authors = get_editable_user_ids( $current_user->id, true, $screen->post_type ); // TODO: ROLE SYSTEM + $authors = get_editable_user_ids( get_current_user_id(), true, $screen->post_type ); // TODO: ROLE SYSTEM $authors_dropdown = ''; if ( $authors && count( $authors ) > 1 ) : $users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1, 'echo' => 0); @@ -1185,16 +1185,16 @@ function get_inline_data($post) { if ( ! current_user_can($post_type_object->cap->edit_post, $post->ID) ) return; - $title = esc_attr( get_the_title( $post->ID ) ); + $title = htmlspecialchars( trim( $post->post_title ), ENT_QUOTES ); echo '