WordPress.org

Make WordPress Core

Ticket #15510: 15510.patch

File 15510.patch, 815 bytes (added by ocean90, 3 years ago)
  • wp-admin/includes/ms.php

     
    721721        } 
    722722        return false; 
    723723} 
     724 
    724725/** 
    725726 * Whether or not we can edit this site from this page 
    726727 *  
     
    739740         
    740741        return apply_filters( 'can_edit_site', $result, $site_id ); 
    741742} 
     743 
     744/** 
     745 * Thickbox image paths for Network Admin 
     746 *  
     747 */ 
     748function thickbox_path_network_admin() {  
     749        if ( ! is_network_admin() ) 
     750                return; 
    742751?> 
     752<script type="text/javascript"> 
     753//<![CDATA[ 
     754var tb_pathToImage = "../../wp-includes/js/thickbox/loadingAnimation.gif"; 
     755var tb_closeImage = "../../wp-includes/js/thickbox/tb-close.png"; 
     756//]]> 
     757</script> 
     758<? } 
     759add_action( 'admin_head', 'thickbox_path_network_admin' ); 
     760?>