Changeset 34609
- Timestamp:
- 09/27/2015 12:26:56 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-text.php
r34553 r34609 17 17 class WP_Widget_Text extends WP_Widget { 18 18 19 /** 20 * Sets up a new Text widget instance. 21 * 22 * @since 2.8.0 23 * @access public 24 */ 19 25 public function __construct() { 20 26 $widget_ops = array('classname' => 'widget_text', 'description' => __('Arbitrary text or HTML.')); … … 24 30 25 31 /** 26 * Outputs the Text widget content.32 * Outputs the content for the current Text widget instance. 27 33 * 28 34 * @since 2.8.0 … … 31 37 * @param array $args Display arguments including 'before_title', 'after_title', 32 38 * 'before_widget', and 'after_widget'. 33 * @param array $instance The settings for the particular instance of the widget.39 * @param array $instance Settings for the current Text widget instance. 34 40 */ 35 41 public function widget( $args, $instance ) { … … 62 68 63 69 /** 64 * @param array $new_instance 65 * @param array $old_instance 66 * @return array 70 * Handles updating settings for the current Text widget instance. 71 * 72 * @since 2.8.0 73 * @access public 74 * 75 * @param array $new_instance New settings for this instance as input by the user via 76 * WP_Widget::form(). 77 * @param array $old_instance Old settings for this instance. 78 * @return array Settings to save or bool false to cancel saving. 67 79 */ 68 80 public function update( $new_instance, $old_instance ) { … … 78 90 79 91 /** 80 * @param array $instance 92 * Outputs the Text widget settings form. 93 * 94 * @since 2.8.0 95 * @access public 96 * 97 * @param array $instance Current settings. 81 98 */ 82 99 public function form( $instance ) { … … 92 109 93 110 <p><input id="<?php echo $this->get_field_id('filter'); ?>" name="<?php echo $this->get_field_name('filter'); ?>" type="checkbox"<?php checked( $filter ); ?> /> <label for="<?php echo $this->get_field_id('filter'); ?>"><?php _e('Automatically add paragraphs'); ?></label></p> 94 <?php111 <?php 95 112 } 96 113 }
Note: See TracChangeset
for help on using the changeset viewer.