Make WordPress Core


Ignore:
Timestamp:
11/18/2010 06:22:13 AM (11 years ago)
Author:
nacin
Message:

Ludicrous speed for internal linking. First pass. props koopersmith, see #11420.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r16365 r16457  
    13281328
    13291329    if ( $teeny ) {
    1330         $plugins = apply_filters( 'teeny_mce_plugins', array('inlinepopups', 'media', 'fullscreen', 'wordpress', 'wplink') );
     1330        $plugins = apply_filters( 'teeny_mce_plugins', array('inlinepopups', 'media', 'fullscreen', 'wordpress', 'wplink', 'wpdialogs') );
    13311331        $ext_plugins = '';
    13321332    } else {
    1333         $plugins = array( 'inlinepopups', 'spellchecker', 'paste', 'wordpress', 'media', 'fullscreen', 'wpeditimage', 'wpgallery', 'tabfocus', 'wplink' );
     1333        $plugins = array( 'inlinepopups', 'spellchecker', 'paste', 'wordpress', 'media', 'fullscreen', 'wpeditimage', 'wpgallery', 'tabfocus', 'wplink', 'wpdialogs' );
    13341334
    13351335        /*
     
    14111411        }
    14121412    }
    1413 
    1414     $plugins = implode($plugins, ',');
    14151413
    14161414    if ( $teeny ) {
     
    14861484        'paste_text_use_dialog' => true,
    14871485        'wpeditimage_disable_captions' => $no_captions,
    1488         'plugins' => $plugins
     1486        'plugins' => implode($plugins, ',')
    14891487    );
    14901488
     
    16091607</script>
    16101608<?php
    1611 }
     1609
     1610    // Load additional inline scripts based on active plugins.
     1611    if ( in_array( 'wpdialogs', $plugins ) ) {
     1612        wp_print_scripts( array('jquery-ui-dialog', 'wpdialogsPopup') );
     1613        wp_print_styles('wp-jquery-ui-dialog');
     1614    }
     1615    if ( in_array( 'wplink', $plugins ) ) {
     1616        require_once ABSPATH . WPINC . "/js/tinymce/wp-mce-link.php";
     1617        add_action('tiny_mce_preload_dialogs', 'wp_link_dialog');
     1618        wp_print_scripts('wplink');
     1619        wp_print_styles('wplink');
     1620    }
     1621}
     1622function wp_tiny_mce_preload_dialogs() { ?>
     1623    <div id="preloaded-dialogs" style="display:none;">
     1624<?php   do_action('tiny_mce_preload_dialogs'); ?>
     1625    </div>
     1626<?php }
Note: See TracChangeset for help on using the changeset viewer.