Source View: tiny_mce_version

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: apply_filters( "hook_name", "what_to_filter" ).

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
31      $scripts->add( 'colorpicker', '/wp-includes/js/colorpicker.js', array('prototype'), '3517' );
32
33      // Let a plugin replace the visual editor
34      $visual_editor = apply_filters('visual_editor', array('tiny_mce'));
35      $scripts->add( 'editor', false, $visual_editor, '20080321' );
36
37      $scripts->add( 'editor_functions', '/wp-admin/js/editor.js', false, '20080710' );
38
39      // Modify this version when tinyMCE plugins are changed.
40      $mce_version = apply_filters('tiny_mce_version', '20080710');
41      $scripts->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('editor_functions'), $mce_version );
42
43      $scripts->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6');
44
45      $scripts->add( 'wp-ajax-response', '/wp-includes/js/wp-ajax-response.js', array('jquery'), '20080316' );
46      $scripts->localize( 'wp-ajax-response', 'wpAjax', array(
47           'noPerm' => __('You do not have permission to do that.'),
48           'broken' => __('An unidentified error has occurred.')
49      ) );