[wp-trac] [WordPress Trac] #54851: Prevent unnecessary code comments from being output to the front end

WordPress Trac noreply at wordpress.org
Wed Jan 19 13:43:40 UTC 2022


#54851: Prevent unnecessary code comments from being output to the front end
--------------------------+------------------------------
 Reporter:  kjellr        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  minor         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by parinpanjari):

 That effectively kills the line after it which is where "Comments are
 closed" is output, but without just deleting it completely.

 if ( 0 && ! comments_open() ) :


 simplest way is to find out the following line  and delete or comment it.

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


More information about the wp-trac mailing list