Ticket #34024: 34024.patch
File 34024.patch, 2.2 KB (added by , 9 years ago) |
---|
-
src/wp-includes/widgets/class-wp-widget-rss.php
16 16 */ 17 17 class WP_Widget_RSS extends WP_Widget { 18 18 19 /** 20 * PHP5 constructor. 21 * 22 * @since 2.8.0 23 * @access public 24 */ 19 25 public function __construct() { 20 26 $widget_ops = array( 'description' => __('Entries from any RSS or Atom feed.') ); 21 27 $control_ops = array( 'width' => 400, 'height' => 200 ); … … 23 29 } 24 30 25 31 /** 26 * @param array $args 27 * @param array $instance 32 * Echoes the widget content. 33 * 34 * @since 2.8.0 35 * @access public 36 * 37 * @param array $args Display arguments including 'before_title', 'after_title', 38 * 'before_widget', and 'after_widget'. 39 * @param array $instance The settings for the particular instance of the widget. 28 40 */ 29 41 public function widget( $args, $instance ) { 30 42 if ( isset($instance['error']) && $instance['error'] ) … … 79 91 } 80 92 81 93 /** 82 * @param array $new_instance 83 * @param array $old_instance 84 * @return array 94 * Updates a particular instance of a widget. 95 * 96 * This function should check that `$new_instance` is set correctly. The newly-calculated 97 * value of `$instance` should be returned. If false is returned, the instance won't be 98 * saved/updated. 99 * 100 * @since 2.8.0 101 * @access public 102 * 103 * @param array $new_instance New settings for this instance as input by the user via 104 * WP_Widget::form(). 105 * @param array $old_instance Old settings for this instance. 106 * @return array Settings to save or bool false to cancel saving. 85 107 */ 86 108 public function update( $new_instance, $old_instance ) { 87 109 $testurl = ( isset( $new_instance['url'] ) && ( !isset( $old_instance['url'] ) || ( $new_instance['url'] != $old_instance['url'] ) ) ); … … 89 111 } 90 112 91 113 /** 92 * @param array $instance 114 * Outputs the settings update form. 115 * 116 * @since 2.8.0 117 * @access public 118 * 119 * @param array $instance Current settings. 93 120 */ 94 121 public function form( $instance ) { 95 122 if ( empty( $instance ) ) {