[wp-trac] [WordPress Trac] #49059: Whitespace inside p element in wp-signup.php should be removed

WordPress Trac noreply at wordpress.org
Sat Dec 21 18:29:22 UTC 2019


#49059: Whitespace inside p element in wp-signup.php should be removed
--------------------------------+------------------------------------------
 Reporter:  henry.wright        |       Owner:  johnjamesjacoby
     Type:  enhancement         |      Status:  assigned
 Priority:  normal              |   Milestone:  5.4
Component:  Networks and Sites  |     Version:  3.0
 Severity:  normal              |  Resolution:
 Keywords:  close               |     Focuses:  multisite, coding-standards
--------------------------------+------------------------------------------

Comment (by azaozz):

 Replying to [comment:3 johnjamesjacoby]:
 > The problem I have always seen with them is the markup they produce is
 oddly difficult to follow when viewing source.
 >
 > While modern tooling and browser inspectors have helped improve that
 experience...

 Right. There was a big discussion many years ago whether the PHP or the
 HTML should be "more readable". Since then the general tendency has been
 to make the PHP more readable as the HTML is usually "seen" in the browser
 console and white space is ignored.

 I personally don't mind revisiting this discussion, but thinking that
 nothing has changed there. Better readability in PHP is preferable to some
 white space in HTML as the latter is reformatted by the browser tools when
 viewed.

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


More information about the wp-trac mailing list