[wp-trac] [WordPress Trac] #38468: Twenty Sixteen: Replace inline control structure in twentysixteen_content_image_sizes_attr()

WordPress Trac noreply at wordpress.org
Mon Oct 24 06:40:09 UTC 2016


#38468: Twenty Sixteen: Replace inline control structure in
twentysixteen_content_image_sizes_attr()
----------------------------+----------------------------------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Bundled Theme   |    Version:
 Severity:  normal          |   Keywords:  needs-patch good-first-bug
  Focuses:                  |
----------------------------+----------------------------------------
 Background: #38384 for Twenty Seventeen.

 See
 [https://github.com/WordPress/twentysixteen/blob/0bd360d67791e833ce1590e924e5799a54d6a437/functions.php#L374-L381
 twentysixteen_content_image_sizes_attr()].

 To improve code readability, lines 374, 377, 379, and 380 should be
 changed to a proper `if ( ) {}` block.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38468>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list