geodirectory-widgets/geodirectory_reviews_widget.php 1 location
|
@@ 101-108 (lines=8) @@
|
| 98 |
|
*
|
| 99 |
|
* @return array Updated safe values to be saved.
|
| 100 |
|
*/
|
| 101 |
|
public function update($new_instance, $old_instance)
|
| 102 |
|
{
|
| 103 |
|
//save the widget
|
| 104 |
|
$instance = $old_instance;
|
| 105 |
|
$instance['title'] = strip_tags($new_instance['title']);
|
| 106 |
|
$instance['count'] = strip_tags($new_instance['count']);
|
| 107 |
|
return $instance;
|
| 108 |
|
}
|
| 109 |
|
|
| 110 |
|
/**
|
| 111 |
|
* Back-end recent reviews widget settings form.
|
geodirectory_widgets.php 1 location
|
@@ 800-807 (lines=8) @@
|
| 797 |
|
*
|
| 798 |
|
* @return array Updated safe values to be saved.
|
| 799 |
|
*/
|
| 800 |
|
public function update($new_instance, $old_instance)
|
| 801 |
|
{
|
| 802 |
|
//save the widget
|
| 803 |
|
$instance = $old_instance;
|
| 804 |
|
$instance['id'] = strip_tags($new_instance['id']);
|
| 805 |
|
$instance['number'] = strip_tags($new_instance['number']);
|
| 806 |
|
return $instance;
|
| 807 |
|
}
|
| 808 |
|
|
| 809 |
|
/**
|
| 810 |
|
* Back-end flickr widget settings form.
|