WordPress.org

Make WordPress Core

Ticket #17805: include_once-functions.php.patch

File include_once-functions.php.patch, 744 bytes (added by 5ubliminal, 3 years ago)

The patch.

  • wp-settings.php

     
    275275// Load the functions for the active theme, for both parent and child theme if applicable. 
    276276if ( ! defined( 'WP_INSTALLING' ) || 'wp-activate.php' === $pagenow ) { 
    277277        if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) ) 
    278                 include( STYLESHEETPATH . '/functions.php' ); 
     278                include_once( STYLESHEETPATH . '/functions.php' ); 
    279279        if ( file_exists( TEMPLATEPATH . '/functions.php' ) ) 
    280                 include( TEMPLATEPATH . '/functions.php' ); 
     280                include_once( TEMPLATEPATH . '/functions.php' ); 
    281281} 
    282282 
    283283do_action( 'after_setup_theme' );