WordPress.org

Make WordPress Core

Ticket #16877: 16877.patch

File 16877.patch, 1.1 KB (added by hakre, 3 years ago)

There is a second placeholder for the stylesheet directory

  • wp-content/themes/twentyten/functions.php

     
    107107        if ( ! defined( 'HEADER_TEXTCOLOR' ) ) 
    108108                define( 'HEADER_TEXTCOLOR', '' ); 
    109109 
    110         // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI. 
     110        // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI, 
     111        // %2$s is a placeholder for the stylesheet directory URI.  
    111112        if ( ! defined( 'HEADER_IMAGE' ) ) 
    112113                define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' ); 
    113114 
     
    131132 
    132133        // ... and thus ends the changeable header business. 
    133134 
    134         // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. 
     135        // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI, 
     136        // %2$s is a placeholder for the stylesheet directory URI. 
    135137        register_default_headers( array( 
    136138                'berries' => array( 
    137139                        'url' => '%s/images/headers/berries.jpg',