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: WordPress.org Priority: normal
Severity: normal Version:
Component: WordPress.org Site Keywords:
Focuses: Cc:

Description

Kindly refer to Child Themes Guide on following URL:
https://developer.wordpress.org/themes/advanced-topics/child-themes/
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:
https://ibb.co/K0tx9dn

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)

@truthrashid
3 years ago

wp-child theme guide screenshot

#1 @SergeyBiryukov
3 years 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.


3 years ago

Note: See TracTickets for help on using tickets.