Make WordPress Core

Opened 7 months ago

Closed 7 months ago

Last modified 7 months ago

#52863 closed defect (bug) (fixed)

Syntax error in Child Theme Guide Code

Reported by: truthrashid Owned by:
Milestone: WordPress.org Priority: normal
Severity: normal Version:
Component: WordPress.org Site Keywords:
Focuses: Cc:


Kindly refer to Child Themes Guide on following URL:
Title named "Using functions.php" on above URL has a "syntax error".
"'" after "echo" on line No.5 in below code is missing.
Kindly do the necessary correction.

?php // Opening PHP tag - nothing should be before this, not even whitespace
// Custom Function to Include
function my_favicon_link() {
    echo <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />' . "\n";
add_action( 'wp_head', 'my_favicon_link' );

Kindly visit the following link for screenshot:

Attachments (1)

wp-child theme guide.png (59.9 KB) - added by truthrashid 7 months ago.
wp-child theme guide screenshot

Download all attachments as: .zip

Change History (3)

7 months ago

wp-child theme guide screenshot

#1 @SergeyBiryukov
7 months ago

  • Component changed from General to WordPress.org Site
  • Milestone changed from Awaiting Review to WordPress.org
  • Resolution set to fixed
  • Status changed from new to closed

Hi there, welcome to WordPress Trac! Thanks for the report.

I've updated the page to fix the issue.

Please note that this Trac is used for enhancements and bug reporting for the WordPress core software. Any issues on WordPress.org sites, including the developer handbooks, should be reported on https://meta.trac.wordpress.org. Documentation corrections like this can also be reported in the #docs channel on WordPress Slack. Thanks again!

This ticket was mentioned in Slack in #themereview by joyously. View the logs.

7 months ago

Note: See TracTickets for help on using tickets.