[wp-trac] [WordPress Trac] #52863: Syntax error in Child Theme Guide Code

WordPress Trac noreply at wordpress.org
Fri Mar 19 08:31:03 UTC 2021


#52863: Syntax error in Child Theme Guide Code
--------------------------+-----------------------------
 Reporter:  truthrashid   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52863>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list