[wp-trac] [WordPress Trac] #39650: Display blank page when post status is draft

WordPress Trac noreply at wordpress.org
Wed Jan 25 11:45:56 UTC 2017


#39650: Display blank page when post status is draft
-------------------------------+--------------------
 Reporter:  sumitbagthariya16  |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  4.8
Component:  Comments           |     Version:  4.7.1
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+--------------------

Comment (by dhanendran):

 @sagarprajapati It's better to have this condition after the first
 [https://github.com/WordPress/WordPress/blob/master/wp-includes/comment-
 template.php#L2170 `if` condition]. Because there might be some chances
 the `$post_id` will be `null`.
 {{{
 if ( null === $post_id )
     $post_id = get_the_ID();
 }}}

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


More information about the wp-trac mailing list