Ticket #19343: 19343.2.patch
File 19343.2.patch, 1.3 KB (added by , 11 years ago) |
---|
-
class-wp-posts-list-table.php
643 643 $actions = array(); 644 644 if ( $can_edit_post && 'trash' != $post->post_status ) { 645 645 $actions['edit'] = '<a href="' . get_edit_post_link( $post->ID, true ) . '" title="' . esc_attr( __( 'Edit this item' ) ) . '">' . __( 'Edit' ) . '</a>'; 646 $actions['inline hide-if-no-js'] = '<a href="#" class="editinline" title="' . esc_attr( __( 'Edit this item inline' ) ) . '">' . __( 'Quick Edit' ) . '</a>'; 646 if ($post_type_object->show_quick_edit) 647 $actions['inline hide-if-no-js'] = '<a href="#" class="editinline" title="' . esc_attr( __( 'Edit this item inline' ) ) . '">' . __( 'Quick Edit' ) . '</a>'; 647 648 } 648 649 if ( current_user_can( 'delete_post', $post->ID ) ) { 649 650 if ( 'trash' == $post->post_status ) … … 886 887 $post = get_default_post_to_edit( $screen->post_type ); 887 888 $post_type_object = get_post_type_object( $screen->post_type ); 888 889 890 if (!$post_type_object->show_quick_edit) 891 return; 892 889 893 $taxonomy_names = get_object_taxonomies( $screen->post_type ); 890 894 $hierarchical_taxonomies = array(); 891 895 $flat_taxonomies = array();