IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 1904 | 1904 | * |
| 1905 | 1905 | * @param array|string $stylesheet Optional. Stylesheet name or array thereof, relative to theme root. |
| 1906 | 1906 | * Defaults to 'editor-style.css' |
| | 1907 | * @param string $version Optional. Add version number to stylesheet URL for cache busting. |
| 1907 | 1908 | */ |
| 1908 | | function add_editor_style( $stylesheet = 'editor-style.css' ) { |
| | 1909 | function add_editor_style( $stylesheet = 'editor-style.css', $version = '' ) { |
| 1909 | 1910 | add_theme_support( 'editor-style' ); |
| 1910 | 1911 | |
| 1911 | 1912 | if ( ! is_admin() ) { |
| … |
… |
|
| 1913 | 1914 | } |
| 1914 | 1915 | |
| 1915 | 1916 | global $editor_styles; |
| | 1917 | global $wp_version; |
| | 1918 | |
| | 1919 | if ( '' === $version ) { |
| | 1920 | $version = $wp_version; |
| | 1921 | } |
| | 1922 | |
| 1916 | 1923 | $editor_styles = (array) $editor_styles; |
| 1917 | 1924 | $stylesheet = (array) $stylesheet; |
| | 1925 | $version = (array) $version; |
| | 1926 | |
| 1918 | 1927 | if ( is_rtl() ) { |
| 1919 | 1928 | $rtl_stylesheet = str_replace( '.css', '-rtl.css', $stylesheet[0] ); |
| 1920 | 1929 | $stylesheet[] = $rtl_stylesheet; |
| 1921 | 1930 | } |
| 1922 | 1931 | |
| 1923 | | $editor_styles = array_merge( $editor_styles, $stylesheet ); |
| | 1932 | $editor_styles = array_merge( $editor_styles, $stylesheet, $version ); |
| 1924 | 1933 | } |
| 1925 | 1934 | |
| 1926 | 1935 | /** |