Changeset 19408 for trunk/wp-admin/includes/deprecated.php
- Timestamp:
- 11/22/2011 09:47:01 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/deprecated.php
r19054 r19408 22 22 _deprecated_function( __FUNCTION__, '2.1', 'wp_editor()' ); 23 23 24 wp_ editor('', 'content');24 wp_tiny_mce(); 25 25 } 26 26 … … 709 709 * @see wp_editor() 710 710 */ 711 function wp_tiny_mce( ) {711 function wp_tiny_mce( $teeny = false, $settings = false ) { 712 712 _deprecated_function( __FUNCTION__, '3.3', 'wp_editor()' ); 713 713 714 wp_editor('', 'content'); 714 global $wp_editor; 715 static $num = 1; 716 717 if ( !is_a($wp_editor, 'WP_Editor') ) { 718 if ( !class_exists('WP_Editor') ) 719 require_once( ABSPATH . WPINC . '/class-wp-editor.php' ); 720 721 $wp_editor = new WP_Editor; 722 } 723 724 $editor_id = 'content' . $num; 725 ++$num; 726 727 $set = array( 728 'teeny' => $teeny, 729 'tinymce' => $settings ? $settings : true, 730 'quicktags' => false 731 ); 732 733 $set = $wp_editor->parse_settings($editor_id, $set); 734 $wp_editor->editor_settings($editor_id, $set); 715 735 } 716 736
Note: See TracChangeset
for help on using the changeset viewer.