Changeset 13441 for trunk/wp-content/themes/twentyten/functions.php
- Timestamp:
- 02/26/2010 08:12:06 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-content/themes/twentyten/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/functions.php
r13417 r13441 28 28 29 29 add_custom_background(); 30 31 // This theme styles the visual editor with editor-style.css to match the theme style. 32 add_editor_style(); 30 33 31 34 // This theme needs post thumbnails … … 134 137 } 135 138 endif; 136 137 // Make the Visual Editor styles match the theme's styles138 if ( ! function_exists( 'twentyten_editor_style' ) ) :139 function twentyten_editor_style( $url ) {140 if ( ! empty( $url ) )141 $url .= ',';142 143 // Change the path here if using sub-directory144 $url .= trailingslashit( get_stylesheet_directory_uri() ) . 'editor-style.css';145 146 return $url;147 }148 endif;149 add_filter( 'mce_css', 'twentyten_editor_style' );150 139 151 140 // Remove inline styles on gallery shortcode
Note: See TracChangeset
for help on using the changeset viewer.