Changes from branches/3.1/wp-admin/includes/class-wp-posts-list-table.php at r17705 to trunk/wp-admin/includes/class-wp-posts-list-table.php at r18234
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-posts-list-table.php
r17705 r18234 46 46 var $sticky_posts_count = 0; 47 47 48 function WP_Posts_List_Table() {48 function __construct() { 49 49 global $post_type_object, $post_type, $wpdb; 50 50 … … 75 75 } 76 76 77 parent:: WP_List_Table( array(77 parent::__construct( array( 78 78 'plural' => 'posts', 79 79 ) ); … … 282 282 $post_status = !empty( $_REQUEST['post_status'] ) ? $_REQUEST['post_status'] : 'all'; 283 283 if ( post_type_supports( $post_type, 'comments' ) && !in_array( $post_status, array( 'pending', 'draft', 'future' ) ) ) 284 $posts_columns['comments'] = '< div class="vers"><img alt="' . esc_attr__( 'Comments' ) . '" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" /></div>';284 $posts_columns['comments'] = '<span class="vers"><img alt="' . esc_attr__( 'Comments' ) . '" src="' . esc_url( admin_url( 'images/comment-grey-bubble.png' ) ) . '" /></span>'; 285 285 286 286 $posts_columns['date'] = __( 'Date' ); … … 551 551 $actions['delete'] = "<a class='submitdelete' title='" . esc_attr( __( 'Delete this item permanently' ) ) . "' href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete Permanently' ) . "</a>"; 552 552 } 553 if ( in_array( $post->post_status, array( 'pending', 'draft' ) ) ) { 554 if ( $can_edit_post ) 555 $actions['view'] = '<a href="' . esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) . '" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>'; 556 } elseif ( 'trash' != $post->post_status ) { 557 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View “%s”' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>'; 553 if ( $post_type_object->public ) { 554 if ( in_array( $post->post_status, array( 'pending', 'draft' ) ) ) { 555 if ( $can_edit_post ) 556 $actions['view'] = '<a href="' . esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) . '" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>'; 557 } elseif ( 'trash' != $post->post_status ) { 558 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View “%s”' ), $title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>'; 559 } 558 560 } 559 561 … … 1004 1006 <input type="hidden" name="post_view" value="<?php echo esc_attr( $m ); ?>" /> 1005 1007 <input type="hidden" name="screen" value="<?php echo esc_attr( $screen->id ); ?>" /> 1008 <span class="error" style="display:none"></span> 1006 1009 <br class="clear" /> 1007 1010 </p>
Note: See TracChangeset
for help on using the changeset viewer.