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