diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 2be5ac32dd..2935423405 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -68,7 +68,7 @@ class WP_Posts_List_Table extends WP_List_Table { $_GET['author'] = get_current_user_id(); } - if ( $sticky_posts = get_option( 'sticky_posts' ) ) { + if ( 'post' == $post_type && $sticky_posts = get_option( 'sticky_posts' ) ) { $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 ID IN ($sticky_posts)", $post_type ) ); } @@ -950,7 +950,7 @@ class WP_Posts_List_Table extends WP_List_Table { - post_type, 'sticky' ) && $can_publish && current_user_can( $post_type_object->cap->edit_others_posts ) ) : ?> + post_type && $can_publish && current_user_can( $post_type_object->cap->edit_others_posts ) ) : ?> @@ -967,12 +967,12 @@ class WP_Posts_List_Table extends WP_List_Table { - + diff --git a/wp-admin/includes/meta-boxes.php b/wp-admin/includes/meta-boxes.php index 0973f0bcc3..e28af81953 100644 --- a/wp-admin/includes/meta-boxes.php +++ b/wp-admin/includes/meta-boxes.php @@ -114,7 +114,7 @@ if ( 'private' == $post->post_status ) { } elseif ( !empty( $post->post_password ) ) { $visibility = 'password'; $visibility_trans = __('Password protected'); -} elseif ( post_type_supports( $post->post_type, 'sticky' ) && is_sticky( $post->ID ) ) { +} elseif ( $post_type == 'post' && is_sticky( $post->ID ) ) { $visibility = 'public'; $visibility_trans = __('Public, Sticky'); } else { @@ -128,15 +128,15 @@ echo esc_html( $visibility_trans ); ?>
-post_type, 'sticky' ) ): ?> + ID)); ?> /> />
-post_type, 'sticky' ) ): ?> -ID)); ?> tabindex="4" />
+ +ID)); ?> tabindex="4" />
/>