WordPress.org

Make WordPress Core

Changeset 16337


Ignore:
Timestamp:
11/13/2010 12:13:08 AM (10 years ago)
Author:
nacin
Message:

Use cap->edit_post in WP_Posts_List_Table. see #14122.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-posts-list-table.php

    r16334 r16337  
    468468        $title = _draft_or_post_title();
    469469        $post_type_object = get_post_type_object( $post->post_type );
    470         $can_edit_post = current_user_can( 'edit_post', $post->ID );
     470        $can_edit_post = current_user_can( $post_type_object->cap->edit_post, $post->ID );
    471471        $post_format = get_post_format( $post->ID );
    472472        $post_format_class = ( $post_format && !is_wp_error($post_format) ) ? 'format-' . sanitize_html_class( $post_format ) : 'format-default';
Note: See TracChangeset for help on using the changeset viewer.