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
1658           && false !== stripos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip');
1659
1660      /**
1661       * Deprecated
1662       *
1663       * The tiny_mce_version filter is not needed since external plugins are loaded directly by TinyMCE.
1664       * These plugins can be refreshed by appending query string to the URL passed to mce_external_plugins filter.
1665       * If the plugin has a popup dialog, a query string can be added to the button action that opens it (in the plugin's code).
1666       */
1667      $version = apply_filters('tiny_mce_version', '');
1668      $version = 'ver=' . $tinymce_version . $version;
1669
1670      if ( 'en' != $language )
1671           include_once(ABSPATH . WPINC . '/js/tinymce/langs/wp-langs.php');
1672
1673      $mce_options = '';
1674      foreach ( $initArray as $k => $v ) {
1675           if ( is_bool($v) ) {
1676                $val = $v ? 'true' : 'false';