Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: autosave_interval

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.

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
26                'enterImageDescription' => __('Enter a description of the image')
27           ) );
28           $this->add( 'colorpicker', '/wp-includes/js/colorpicker.js', false, '3517' );
29           $this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_gzip.php', false, '20070326' );
30           $mce_config = apply_filters('tiny_mce_config_url', '/wp-includes/js/tinymce/tiny_mce_config.php');
31           $this->add( 'wp_tiny_mce', $mce_config, array('tiny_mce'), '20070225' );
32           $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.5.0-0');
33           $this->add( 'autosave', '/wp-includes/js/autosave.js', array('prototype', 'sack'), '20070306');
34           $this->localize( 'autosave', 'autosaveL10n', array(
35                'autosaveInterval' => apply_filters('autosave_interval', '120'),
36                'errorText' => __('Error: %response%'),
37                'saveText' => __('Saved at %time%.'),
38                'requestFile' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php',
39                'savingText' => __('Saving Draft...')
40           ) );
41           $this->add( 'wp-ajax', '/wp-includes/js/wp-ajax.js', array('prototype'), '20070306');
42           $this->localize( 'wp-ajax', 'WPAjaxL10n', array(
43                'defaultUrl' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php',
44                'permText' => __("You don't have permission to do that."),