Make WordPress Core


Ignore:
Timestamp:
05/22/2006 05:16:05 PM (20 years ago)
Author:
ryan
Message:

Script loader from mdawaffe. #2701

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r3778 r3788  
    11741174function the_quicktags() {
    11751175        // Browser detection sucks, but until Safari supports the JS needed for this to work people just assume it's a bug in WP
    1176         if (!strstr($_SERVER['HTTP_USER_AGENT'], 'Safari'))
     1176        if (!strstr($_SERVER['HTTP_USER_AGENT'], 'Safari')) {
    11771177                echo '
    11781178                <div id="quicktags">
    1179                         <script src="../wp-includes/js/quicktags.js" type="text/javascript"></script>
    1180                         <script type="text/javascript">if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 ) edToolbar();</script>
     1179                        ';
     1180                wp_print_scripts( 'quicktags' );
     1181                echo '                  <script type="text/javascript">if ( typeof tinyMCE == "undefined" || tinyMCE.configs.length < 1 ) edToolbar();</script>
    11811182                </div>
    11821183';
    1183         else echo '
     1184        } else echo '
    11841185<script type="text/javascript">
    11851186function edInsertContent(myField, myValue) {
Note: See TracChangeset for help on using the changeset viewer.