[wp-trac] [WordPress Trac] #46604: Twenty Seventeen: Front page panels allow pages of any status to be shown.

WordPress Trac noreply at wordpress.org
Tue Aug 17 00:21:05 UTC 2021


#46604: Twenty Seventeen: Front page panels allow pages of any status to be shown.
-------------------------------------+------------------------------
 Reporter:  brettshumaker            |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Bundled Theme            |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => has-patch needs-testing


Comment:

 Hi and welcome to WordPress Core Trac!

 I think there might be a use case for private page content within a
 private/membership site. If not, the conditional could check for `publish`
 status only.

 Verifying `$post` first in the conditional seems to avoid getting errors
 on `post_status`.

 The first patch does not show placeholders again in Customizer if the
 previously selected page is switched to draft status or trashed, so I made
 another version for that.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46604#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list