[wp-meta] [Making WordPress.org] #2182: Incorrect semicolon in a PHP code snippet

Making WordPress.org noreply at wordpress.org
Tue Oct 25 14:02:03 UTC 2016


#2182: Incorrect semicolon in a PHP code snippet
---------------------------+-------------------------------
 Reporter:  fahidjavid     |      Owner:
     Type:  defect         |     Status:  new
 Priority:  normal         |  Milestone:
Component:  Developer Hub  |   Keywords:  reporter-feedback
---------------------------+-------------------------------
 Hi,

 I have found an unnecessary semicolon in a PHP code snippet while I was
 using Customizer API to add customizer control in my project.

 If you find the following code on this page
 https://developer.wordpress.org/themes/advanced-topics/customizer-api/

 {{{#!php
 <?php
 $wp_customize->add_control(
   new WP_Customize_Color_Control(
     $wp_customize, // WP_Customize_Manager
     'accent_color', // Setting id
     array( // Args, including any custom ones.
       'label' => __( 'Accent Color' ),
       'section' =>; 'colors',
     )
   )
 );
 }}}

 You can see the unnecessary semicolon next to the ''''section' =>'''
 parameter.

 Here is the related screenshot:

 [[Image(http://content.screencast.com/users/fahidjaivid/folders/Jing/media/054c82f0-856e-4955-ad17-65ca78d8a11c/00000914.png)]]

 Thank you,

 Fahid

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2182>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list