[wp-trac] [WordPress Trac] #41057: Update PHP codebase per WordPress PHP Coding Standards

WordPress Trac noreply at wordpress.org
Thu Nov 23 04:08:44 UTC 2017


#41057: Update PHP codebase per WordPress PHP Coding Standards
----------------------------+-----------------------
 Reporter:  netweb          |       Owner:  pento
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  5.0
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  early           |     Focuses:
----------------------------+-----------------------

Comment (by pento):

 In [changeset:"42217"]:
 {{{
 #!CommitTicketReference repository="" revision="42217"
 General: Reformat inline `if ()` statements inside HTML tags.

 This pattern occurs a handful of times across the codebase:

 `<div class="foo<?php if ( $bar ) { echo ' baz'; } ?>">`

 Unfortunately, it doesn't really play nicely with `phpcbf`, so all
 instances need to be removed in preperation for auto code formatting.

 See #41057.
 }}}

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


More information about the wp-trac mailing list