JS resources using site_url versus root relative links
-
Removing references to siteurl avoids the potential for browser security warnings and allows Chrome to load the dialog boxes when the siteurl is prefixed with https:// and the blog is currently being served over https.
Patches below:
$ diff sh-tinymce-button-ins/window.php sh-tinymce-button-ins/window.php.bak 25,26c25,26 < <script language="javascript" type="text/javascript" src="/wp-includes/js/tinymce/tiny_mce_popup.js"></script> < <script language="javascript" type="text/javascript" src="/wp-includes/js/tinymce/utils/form_utils.js"></script> --- > <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script> > <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/form_utils.js"></script> 79c79
$ diff sh-tinymce-button-box/window.php sh-tinymce-button-box/window.php.bak 25,26c25,26 < <script language="javascript" type="text/javascript" src="/wp-includes/js/tinymce/tiny_mce_popup.js"></script> < <script language="javascript" type="text/javascript" src="/wp-includes/js/tinymce/utils/form_utils.js"></script> --- > <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script> > <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/form_utils.js"></script> 85c85
- The topic ‘JS resources using site_url versus root relative links’ is closed to new replies.