WordPress.org

Making WordPress.org

Opened 7 months ago

Closed 7 months ago

Last modified 7 months ago

#2182 closed defect (fixed)

Incorrect semicolon in a PHP code snippet

Reported by: fahidjavid Owned by:
Milestone: Priority: normal
Component: Developer Hub Keywords:
Cc:

Description

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
$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:

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

Thank you,

Fahid

Change History (2)

#1 @DrewAPicture
7 months ago

  • Keywords reporter-feedback removed
  • Resolution set to fixed
  • Status changed from new to closed

Hi @fahidjavid, welcome to Meta Trac! The code snippet has been fixed.

#2 @fahidjavid
7 months ago

Hi @DrewAPicture, thank you :)

Note: See TracTickets for help on using tickets.