Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#52863 closed defect (bug) (fixed)

Syntax error in Child Theme Guide Code

Reported by: truthrashid's profile truthrashid Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: 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 3 years ago.
wp-child theme guide screenshot

Download all attachments as: .zip

Change History (3)

3 years ago

wp-child theme guide screenshot

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Site
  • Milestone changed from Awaiting Review to
  • 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 sites, including the developer handbooks, should be reported on 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.

3 years ago

Note: See TracTickets for help on using tickets.