WordPress.org

Make WordPress Core

Ticket #15510: 15510.2.patch

File 15510.2.patch, 1.2 KB (added by ocean90, 3 years ago)
  • wp-includes/general-template.php

     
    21542154function add_thickbox() { 
    21552155        wp_enqueue_script( 'thickbox' ); 
    21562156        wp_enqueue_style( 'thickbox' ); 
     2157 
     2158        if ( is_network_admin() )  
     2159                add_action( 'admin_head', 'thickbox_path_network_admin' ); 
    21572160} 
    21582161 
    21592162/** 
  • wp-admin/includes/ms.php

     
    719719        } 
    720720        return false; 
    721721} 
     722 
    722723/** 
    723724 * Whether or not we can edit this network from this page 
    724725 * 
     
    737738 
    738739        return apply_filters( 'can_edit_network', $result, $site_id ); 
    739740} 
     741 
     742/** 
     743 * Thickbox image paths for Network Admin 
     744 *  
     745 */ 
     746function thickbox_path_network_admin() {  
     747        if ( ! is_network_admin() ) 
     748                return; 
    740749?> 
     750<script type="text/javascript"> 
     751//<![CDATA[ 
     752var tb_pathToImage = "../../wp-includes/js/thickbox/loadingAnimation.gif"; 
     753var tb_closeImage = "../../wp-includes/js/thickbox/tb-close.png"; 
     754//]]> 
     755</script> 
     756<? } 
     757?>