Version Description
Download this release
Release Info
Developer | satrya |
Plugin | Advanced Random Posts Widget |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2
- arpw.php +1 -1
- includes/widget-advanced-random-posts.php +2 -2
- readme.txt +2 -2
arpw.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Advanced Random Posts Widget
|
4 |
Plugin URI: https://github.com/themephe/advanced-random-posts-widget
|
5 |
Description: Enables advanced random posts widget.
|
6 |
-
Version: 1.
|
7 |
Author: Satrya
|
8 |
Author URI: http://satrya.me
|
9 |
Author Email: satrya@satrya.me
|
3 |
Plugin Name: Advanced Random Posts Widget
|
4 |
Plugin URI: https://github.com/themephe/advanced-random-posts-widget
|
5 |
Description: Enables advanced random posts widget.
|
6 |
+
Version: 1.2
|
7 |
Author: Satrya
|
8 |
Author URI: http://satrya.me
|
9 |
Author Email: satrya@satrya.me
|
includes/widget-advanced-random-posts.php
CHANGED
@@ -114,7 +114,7 @@ class arpw_widget extends WP_Widget {
|
|
114 |
function update( $new_instance, $old_instance ) {
|
115 |
|
116 |
$instance = $old_instance;
|
117 |
-
$instance['title'] =
|
118 |
$instance['limit'] = $new_instance['limit'];
|
119 |
$instance['excerpt'] = $new_instance['excerpt'];
|
120 |
$instance['length'] = (int)( $new_instance['length'] );
|
@@ -147,7 +147,7 @@ class arpw_widget extends WP_Widget {
|
|
147 |
);
|
148 |
|
149 |
$instance = wp_parse_args( (array) $instance, $defaults );
|
150 |
-
$title =
|
151 |
$limit = $instance['limit'];
|
152 |
$excerpt = $instance['excerpt'];
|
153 |
$length = (int)($instance['length']);
|
114 |
function update( $new_instance, $old_instance ) {
|
115 |
|
116 |
$instance = $old_instance;
|
117 |
+
$instance['title'] = strip_tags( $new_instance['title'] );
|
118 |
$instance['limit'] = $new_instance['limit'];
|
119 |
$instance['excerpt'] = $new_instance['excerpt'];
|
120 |
$instance['length'] = (int)( $new_instance['length'] );
|
147 |
);
|
148 |
|
149 |
$instance = wp_parse_args( (array) $instance, $defaults );
|
150 |
+
$title = strip_tags( $instance['title'] );
|
151 |
$limit = $instance['limit'];
|
152 |
$excerpt = $instance['excerpt'];
|
153 |
$length = (int)($instance['length']);
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: satrya
|
|
3 |
Tags: random posts, random, thumbnails, widget, widgets, sidebar, excerpt, multiple widgets
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 3.5
|
6 |
-
Stable tag: 1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -11,7 +11,7 @@ Easily display random posts in a widget. Allows you to display them with thumbna
|
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
This plugin will enable a custom,
|
15 |
|
16 |
= Features Include: =
|
17 |
|
3 |
Tags: random posts, random, thumbnails, widget, widgets, sidebar, excerpt, multiple widgets
|
4 |
Requires at least: 3.4
|
5 |
Tested up to: 3.5
|
6 |
+
Stable tag: 1.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
This plugin will enable a custom, flexible and advanced random posts widget. Allows you to display a list of random posts with thumbnail and excerpt also you can display it from all or a specific category.
|
15 |
|
16 |
= Features Include: =
|
17 |
|