为什么会发生这种情况,除了快速查看core之外,它还做了以下工作来实现这一点WP_Posts_List_Table
类别:
$sticky_posts = implode( \', \', array_map( \'absint\', (array) $sticky_posts ) );
$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 ) );