Ticket #34019: 34019.patch
File 34019.patch, 2.1 KB (added by , 9 years ago) |
---|
-
src/wp-includes/widgets/class-wp-widget-links.php
16 16 */ 17 17 class WP_Widget_Links 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' => __( "Your blogroll" ) ); 21 27 parent::__construct('links', __('Links'), $widget_ops); … … 22 28 } 23 29 24 30 /** 25 * @param array $args 26 * @param array $instance 31 * Echoes the widget content. 32 * 33 * @since 2.8.0 34 * @access public 35 * 36 * @param array $args Display arguments including 'before_title', 'after_title', 37 * 'before_widget', and 'after_widget'. 38 * @param array $instance The settings for the particular instance of the widget. 27 39 */ 28 40 public function widget( $args, $instance ) { 29 41 $show_description = isset($instance['description']) ? $instance['description'] : false; … … 68 80 } 69 81 70 82 /** 71 * @param array $new_instance 72 * @param array $old_instance 73 * @return array 83 * Updates a particular instance of a widget. 84 * 85 * This function should check that `$new_instance` is set correctly. The newly-calculated 86 * value of `$instance` should be returned. If false is returned, the instance won't be 87 * saved/updated. 88 * 89 * @since 2.8.0 90 * @access public 91 * 92 * @param array $new_instance New settings for this instance as input by the user via 93 * WP_Widget::form(). 94 * @param array $old_instance Old settings for this instance. 95 * @return array Settings to save or bool false to cancel saving. 74 96 */ 75 97 public function update( $new_instance, $old_instance ) { 76 98 $new_instance = (array) $new_instance; … … 91 113 } 92 114 93 115 /** 94 * @param array $instance 116 * Outputs the settings update form. 117 * 118 * @since 2.8.0 119 * @access public 120 * 121 * @param array $instance Current settings. 95 122 */ 96 123 public function form( $instance ) { 97 124