Changeset 7130 for trunk/wp-includes/script-loader.php
- Timestamp:
- 03/02/2008 08:17:30 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/script-loader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/script-loader.php
r7103 r7130 33 33 $visual_editor = apply_filters('visual_editor', array('tiny_mce')); 34 34 $this->add( 'editor', false, $visual_editor, '20080218' ); 35 35 36 36 $this->add( 'editor_functions', '/wp-admin/js/editor.js', false, '20080221' ); 37 37 38 38 // Modify this version when tinyMCE plugins are changed. 39 39 $mce_version = apply_filters('tiny_mce_version', '20080226'); 40 40 $this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('editor_functions'), $mce_version ); 41 41 42 42 $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6'); 43 43 … … 480 480 } 481 481 482 // These localizations require information that may not be loaded even by init 483 function wp_just_in_time_script_localization() { 484 wp_localize_script( 'tiny_mce', 'wpTinyMCEConfig', array( 'defaultEditor' => wp_default_editor() ) ); 485 } 486 487 add_filter( 'wp_print_scripts', 'wp_just_in_time_script_localization' ); 482 // These localizations require information that may not be loaded even by init 483 function wp_just_in_time_script_localization() { 484 wp_localize_script( 'tiny_mce', 'wpTinyMCEConfig', array( 'defaultEditor' => wp_default_editor() ) ); 485 } 486 487 add_filter( 'wp_print_scripts', 'wp_just_in_time_script_localization' ); 488 488 add_filter( 'print_scripts_array', 'wp_prototype_before_jquery' ); 489 489
Note: See TracChangeset
for help on using the changeset viewer.