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
214 if ( $compress && isset($_SERVER['HTTP_ACCEPT_ENCODING']) ) {
215      if ( ( false !== strpos( strtolower($_SERVER['HTTP_ACCEPT_ENCODING']), 'gzip') || isset($_SERVER['---------------']) ) && function_exists('gzencode') && ! ini_get('zlib.output_compression') ) {
216           $cache_ext = '.gz';
217      }
218 }
219
220 // Setup cache info
221 if ( $disk_cache ) {
222
223      $cacheKey = apply_filters('tiny_mce_version', '20080327');
224
225      foreach ( $initArray as $v )
226           $cacheKey .= $v;
227
228      if ( ! empty($mce_external_plugins) ) {
229           foreach ( $mce_external_plugins as $n => $v )
230                $cacheKey .= $n;
231      }
232