#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: |
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)
Change History (3)
#1
@
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!
wp-child theme guide screenshot