WordPress.org

Make WordPress Core

Ticket #11568: wp-settings.patch

File wp-settings.patch, 632 bytes (added by raysolomon, 8 years ago)
  • wp-settings.php

     
    713713// Load functions for active theme.
    714714if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists(STYLESHEETPATH . '/functions.php') )
    715715        include(STYLESHEETPATH . '/functions.php');
    716 if ( file_exists(TEMPLATEPATH . '/functions.php') )
     716if ( !file_exists(STYLESHEETPATH . '/functions.php') && file_exists(TEMPLATEPATH . '/functions.php') )
    717717        include(TEMPLATEPATH . '/functions.php');
    718718
    719719// Load in support for template functions which the theme supports