WordPress.org

Make WordPress Core

Ticket #8497: 8497-cron.diff

File 8497-cron.diff, 1.0 KB (added by Denis-de-Bernardy, 5 years ago)

fix both themes and plugins update cron

  • wp-includes/theme.php

     
    162162 * @return array Theme data. 
    163163 */ 
    164164function get_theme_data( $theme_file ) { 
     165        if( !function_exists( '_cleanup_header_comment' ) ) 
     166                require_once( ABSPATH . 'wp-admin/includes/misc.php' ); 
     167         
    165168        $themes_allowed_tags = array( 
    166169                'a' => array( 
    167170                        'href' => array(),'title' => array() 
  • wp-admin/includes/plugin.php

     
    6666 * @return array See above for description. 
    6767 */ 
    6868function get_plugin_data( $plugin_file, $markup = true, $translate = true ) { 
     69        if( !function_exists( '_cleanup_header_comment' ) ) 
     70                require_once( ABSPATH . 'wp-admin/includes/misc.php' ); 
     71         
    6972        // We don't need to write to the file, so just open for reading. 
    7073        $fp = fopen($plugin_file, 'r'); 
    7174