Changeset 6587
- Timestamp:
- 01/09/2008 08:11:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/script-loader.php
r6584 r6587 35 35 $mce_config = apply_filters('tiny_mce_config_url', '/wp-includes/js/tinymce/tiny_mce_config.php'); 36 36 $this->add( 'wp_tiny_mce', $mce_config, array('tiny_mce'), '20080105' ); 37 $this->localize( 'wp_tiny_mce', 'wpTinyMCEConfig', array( 'defaultEditor' => wp_default_editor() ) );38 37 39 38 $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6'); … … 436 435 } 437 436 437 // These localizations require information that may not be loaded even by init 438 function wp_just_in_time_script_localization() { 439 wp_localize_script( 'wp_tiny_mce', 'wpTinyMCEConfig', array( 'defaultEditor' => wp_default_editor() ) ); 440 } 441 442 add_filter( 'wp_print_scripts', 'wp_just_in_time_script_localization' ); 438 443 add_filter( 'print_scripts_array', 'wp_prototype_before_jquery' ); 439 444
Note: See TracChangeset
for help on using the changeset viewer.