Show drafts that have a published parent. Props mdawaffe. fixes #4356
git-svn-id: https://develop.svn.wordpress.org/trunk@5582 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d7ed90532a
commit
c5b072deba
|
@ -15,6 +15,7 @@ $post_stati = array( // array( adj, noun )
|
||||||
|
|
||||||
$post_status_label = _c('Pages|manage pages header');
|
$post_status_label = _c('Pages|manage pages header');
|
||||||
$post_listing_pageable = true;
|
$post_listing_pageable = true;
|
||||||
|
$post_status_q = '';
|
||||||
if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) {
|
if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) {
|
||||||
$post_status_label = $post_stati[$_GET['post_status']][1];
|
$post_status_label = $post_stati[$_GET['post_status']][1];
|
||||||
$post_listing_pageable = false;
|
$post_listing_pageable = false;
|
||||||
|
@ -58,10 +59,7 @@ printf( _c( '%1$s%2$s|manage pages header' ), $post_status_label, $h2_search );
|
||||||
<?php
|
<?php
|
||||||
wp("post_type=page&orderby=menu_order&what_to_show=posts$post_status_q&posts_per_page=-1&posts_per_archive_page=-1&order=asc");
|
wp("post_type=page&orderby=menu_order&what_to_show=posts$post_status_q&posts_per_page=-1&posts_per_archive_page=-1&order=asc");
|
||||||
|
|
||||||
if ( $_GET['s'] )
|
$all = !( $h2_search || $post_status_q );
|
||||||
$all = false;
|
|
||||||
else
|
|
||||||
$all = true;
|
|
||||||
|
|
||||||
if ($posts) {
|
if ($posts) {
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue