Changeset 18498 for trunk/wp-includes/deprecated.php
- Timestamp:
- 08/03/2011 10:19:00 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/deprecated.php
r18490 r18498 2617 2617 } 2618 2618 2619 /** 2620 * Find out which editor should be displayed 2621 * 2622 * @see WP_Editor::wp_default_editor() 2623 * @since 2.5.0 2624 * @deprecated 3.5 2625 * 2626 * @return bool 2627 */ 2628 function wp_default_editor() { 2629 _deprecated_function( __FUNCTION__, '3.3' ); 2630 2631 global $wp_editor; 2632 if ( !is_a($wp_editor, 'WP_Editor') ) { 2633 require_once( ABSPATH . WPINC . '/class-wp-editor.php' ); 2634 $wp_editor = new WP_Editor; 2635 } 2636 2637 return $wp_editor->wp_default_editor(); 2638 } 2639 2640 /** 2641 * Display editor: TinyMCE, HTML, or both. 2642 * 2643 * @since 2.1.0 2644 * @deprecated 3.3 2645 * 2646 * @param string $content Textarea content. 2647 * @param string $id Optional, default is 'content'. HTML ID attribute value. 2648 * @param string $prev_id Optional, not used 2649 * @param bool $media_buttons Optional, default is true. Whether to display media buttons. 2650 * @param int $tab_index Optional, not used 2651 */ 2652 function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2, $extended = true) { 2653 2654 wp_editor( $content, $id, array( 'media_buttons' => $media_buttons ) ); 2655 return; 2656 } 2657
Note: See TracChangeset
for help on using the changeset viewer.