Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( (strpos($_SERVER['SCRIPT_NAME'], 'wp-admin/user-edit.php')) || (strpos($_SERVER['SCRIPT_NAME'], 'wp-admin/profile.php'))) {
- add_action('admin_head', 'add_tinymce');
- }
- remove_filter('pre_user_description', 'wp_filter_kses');
- add_filter('pre_user_description', 'wpautop');
- function add_tinymce() {
- if (function_exists('wp_tiny_mce')) {
- add_filter( 'teeny_mce_before_init', create_function( '$a', '$a["width"] = "600"; $a["height"] = "340"; $a["onpageload"] = ""; $a["mode"] = "exact"; $a["elements"] = "description"; $a["editor_selector"] = "mceEditor"; return $a;' ) );
- wp_tiny_mce( true );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement