mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Script loader from mdawaffe. #2701
git-svn-id: https://develop.svn.wordpress.org/trunk@3788 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1173,14 +1173,15 @@ function save_mod_rewrite_rules() {
|
||||
|
||||
function the_quicktags() {
|
||||
// Browser detection sucks, but until Safari supports the JS needed for this to work people just assume it's a bug in WP
|
||||
if (!strstr($_SERVER['HTTP_USER_AGENT'], 'Safari'))
|
||||
if (!strstr($_SERVER['HTTP_USER_AGENT'], 'Safari')) {
|
||||
echo '
|
||||
<div id="quicktags">
|
||||
<script src="../wp-includes/js/quicktags.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 ) edToolbar();</script>
|
||||
';
|
||||
wp_print_scripts( 'quicktags' );
|
||||
echo ' <script type="text/javascript">if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 ) edToolbar();</script>
|
||||
</div>
|
||||
';
|
||||
else echo '
|
||||
} else echo '
|
||||
<script type="text/javascript">
|
||||
function edInsertContent(myField, myValue) {
|
||||
//IE support
|
||||
|
||||
Reference in New Issue
Block a user