- Timestamp:
- 07/01/2019 12:50:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r45136 r45583 110 110 } 111 111 112 if ( 'post' === $post_type && $sticky_posts = get_option( 'sticky_posts' ) ) { 112 $sticky_posts = get_option( 'sticky_posts' ); 113 if ( 'post' === $post_type && $sticky_posts ) { 113 114 $sticky_posts = implode( ', ', array_map( 'absint', (array) $sticky_posts ) ); 114 115 $this->sticky_posts_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT( 1 ) FROM $wpdb->posts WHERE post_type = %s AND post_status NOT IN ('trash', 'auto-draft') AND ID IN ($sticky_posts)", $post_type ) ); … … 244 245 $url = add_query_arg( $args, 'edit.php' ); 245 246 246 $class_html = $aria_current = ''; 247 $class_html = ''; 248 $aria_current = ''; 247 249 if ( ! empty( $class ) ) { 248 250 $class_html = sprintf( … … 996 998 $locked_text = esc_html( sprintf( __( '%s is currently editing' ), $lock_holder->display_name ) ); 997 999 } else { 998 $locked_avatar = $locked_text = ''; 1000 $locked_avatar = ''; 1001 $locked_text = ''; 999 1002 } 1000 1003 … … 1055 1058 1056 1059 if ( '0000-00-00 00:00:00' === $post->post_date ) { 1057 $t_time = $h_time = __( 'Unpublished' ); 1060 $t_time = __( 'Unpublished' ); 1061 $h_time = $t_time; 1058 1062 $time_diff = 0; 1059 1063 } else { … … 1575 1579 } 1576 1580 1577 if ( $authors = wp_dropdown_users( $users_opt ) ) : 1581 $authors = wp_dropdown_users( $users_opt ); 1582 if ( $authors ) : 1578 1583 $authors_dropdown = '<label class="inline-edit-author">'; 1579 1584 $authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>';
Note: See TracChangeset
for help on using the changeset viewer.