screen_options() for 'show on screen' should look for show_ui post types, not public.
git-svn-id: https://develop.svn.wordpress.org/trunk@15339 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
462d22c3e2
commit
494f898c39
|
@ -3736,7 +3736,7 @@ function screen_options($screen) {
|
||||||
case 'edit':
|
case 'edit':
|
||||||
case 'edit-pages':
|
case 'edit-pages':
|
||||||
$post_type = 'post';
|
$post_type = 'post';
|
||||||
if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types( array('public' => true ) ) ) )
|
if ( isset($_GET['post_type']) && in_array( $_GET['post_type'], get_post_types( array('show_ui' => true ) ) ) )
|
||||||
$post_type = $_GET['post_type'];
|
$post_type = $_GET['post_type'];
|
||||||
$post_type_object = get_post_type_object($post_type);
|
$post_type_object = get_post_type_object($post_type);
|
||||||
$per_page_label = $post_type_object->labels->name;
|
$per_page_label = $post_type_object->labels->name;
|
||||||
|
|
Loading…
Reference in New Issue