Version Description
- Fix next/prev buttons for v. 2 of Javascript. Add next/prev 'tweets' option to documentation. Fix bug on admin page when WP_DEBUG is set.
=
Download this release
Release Info
Developer | mpntod |
Plugin | Rotating Tweets (Twitter widget and shortcode) |
Version | 1.6.7 |
Comparing to | |
See all releases |
Code changes from version 1.6.6 to 1.6.7
- lib/wp_twitteroauth.php +6 -4
- readme.txt +9 -4
- rotatingtweets.php +5 -1
lib/wp_twitteroauth.php
CHANGED
@@ -201,7 +201,7 @@ if(!class_exists('rotatingtweets_TwitterOauth')):
|
|
201 |
*/
|
202 |
function http($url, $method, $postfields = NULL) {
|
203 |
|
204 |
-
if(WP_DEBUG) echo "<!-- wp_remote_request() variables in lib/wp_twitteroauth.php: \n\n\$url = ".esc_url($url)."\n";
|
205 |
if(!empty($method)):
|
206 |
$args['method']=$method;
|
207 |
endif;
|
@@ -210,7 +210,8 @@ if(!class_exists('rotatingtweets_TwitterOauth')):
|
|
210 |
endif;
|
211 |
$args['timeout'] = $this->timeout;
|
212 |
$args['sslverify'] = $this->ssl_verifypeer;
|
213 |
-
|
|
|
214 |
echo "\n\$args = ";
|
215 |
if(isset($args)):
|
216 |
print_r($args);
|
@@ -219,12 +220,13 @@ if(!class_exists('rotatingtweets_TwitterOauth')):
|
|
219 |
endif;
|
220 |
echo "\n-->\n";
|
221 |
endif;
|
|
|
222 |
$response = wp_remote_request($url,$args);
|
223 |
-
if(WP_DEBUG) echo "<!-- wp_remote_request() in lib/wp_twitteroauth.php successfully completed -->\n";
|
224 |
return($response);
|
225 |
|
226 |
/*
|
227 |
-
if(WP_DEBUG) echo "<!-- Using curl API to access data directly -->";
|
228 |
$this->http_info = array();
|
229 |
$ci = curl_init();
|
230 |
# Curl settings
|
201 |
*/
|
202 |
function http($url, $method, $postfields = NULL) {
|
203 |
|
204 |
+
if(WP_DEBUG && ! is_admin()) echo "<!-- wp_remote_request() variables in lib/wp_twitteroauth.php: \n\n\$url = ".esc_url($url)."\n";
|
205 |
if(!empty($method)):
|
206 |
$args['method']=$method;
|
207 |
endif;
|
210 |
endif;
|
211 |
$args['timeout'] = $this->timeout;
|
212 |
$args['sslverify'] = $this->ssl_verifypeer;
|
213 |
+
|
214 |
+
if(WP_DEBUG && ! is_admin()):
|
215 |
echo "\n\$args = ";
|
216 |
if(isset($args)):
|
217 |
print_r($args);
|
220 |
endif;
|
221 |
echo "\n-->\n";
|
222 |
endif;
|
223 |
+
|
224 |
$response = wp_remote_request($url,$args);
|
225 |
+
if(WP_DEBUG && ! is_admin()) echo "<!-- wp_remote_request() in lib/wp_twitteroauth.php successfully completed -->\n";
|
226 |
return($response);
|
227 |
|
228 |
/*
|
229 |
+
if(WP_DEBUG && ! is_admin()) echo "<!-- Using curl API to access data directly -->";
|
230 |
$this->http_info = array();
|
231 |
$ci = curl_init();
|
232 |
# Curl settings
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual,responsive
|
5 |
Requires at least: 2.6
|
6 |
Tested up to: 3.8
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -84,7 +84,7 @@ Possible variables for the shortcode include:
|
|
84 |
* `prev` = content for the prev button (default `'prev'`)
|
85 |
* `next` = content for the next button (default `'next'`)
|
86 |
* `middot` = content for the space between the buttons (default `' &middot; '`)
|
87 |
-
* `np_pos` = position for 'next' and 'prev' buttons - `'top'` or `'
|
88 |
* **Twitter follow button**
|
89 |
* `show_follow` = `'0'` or `'1'` - show follow button - optional - default is `'0'`
|
90 |
* `no_show_count` = `'0'` or `'1'` - remove the follower count from the Twitter follow button - optional - default is `'0'`
|
@@ -163,10 +163,15 @@ into your CSS - changing `123px;` to the width you're aiming at - either via put
|
|
163 |
You can do this by going to the `rotatingtweets/css` directory and renaming `rotatingtweets-sample.css` to `rotatingtweets.css` and putting it in the `wp-content/uploads/` directory. This displays a Twitter bird to the left of your tweets. Any CSS you put into `rotatingtweets.css` won't be overwritten when the plug-in is upgraded to the latest version.
|
164 |
|
165 |
== Upgrade notice ==
|
166 |
-
= 1.6.
|
167 |
-
*
|
168 |
|
169 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
170 |
= 1.6.6 =
|
171 |
* Corrected the 16x16 icon to the latest Twitter logo.
|
172 |
|
4 |
Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual,responsive
|
5 |
Requires at least: 2.6
|
6 |
Tested up to: 3.8
|
7 |
+
Stable tag: 1.6.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
84 |
* `prev` = content for the prev button (default `'prev'`)
|
85 |
* `next` = content for the next button (default `'next'`)
|
86 |
* `middot` = content for the space between the buttons (default `' &middot; '`)
|
87 |
+
* `np_pos` = position for 'next' and 'prev' buttons - `'top'`, `'bottom'` or `'tweets'` (default `'top'`)
|
88 |
* **Twitter follow button**
|
89 |
* `show_follow` = `'0'` or `'1'` - show follow button - optional - default is `'0'`
|
90 |
* `no_show_count` = `'0'` or `'1'` - remove the follower count from the Twitter follow button - optional - default is `'0'`
|
163 |
You can do this by going to the `rotatingtweets/css` directory and renaming `rotatingtweets-sample.css` to `rotatingtweets.css` and putting it in the `wp-content/uploads/` directory. This displays a Twitter bird to the left of your tweets. Any CSS you put into `rotatingtweets.css` won't be overwritten when the plug-in is upgraded to the latest version.
|
164 |
|
165 |
== Upgrade notice ==
|
166 |
+
= 1.6.7 =
|
167 |
+
* Fix next/prev buttons for v. 2 of Javascript. Add next/prev 'tweets' option to documentation. Fix bug on admin page when WP_DEBUG is set.
|
168 |
|
169 |
== Changelog ==
|
170 |
+
= 1.6.7 =
|
171 |
+
* Fix next/prev buttons for v. 2 of Javascript.
|
172 |
+
* Add next/prev `np_pos='tweets'` option to documentation.
|
173 |
+
* Fix bug on admin page when `WP_DEBUG` is set.
|
174 |
+
|
175 |
= 1.6.6 =
|
176 |
* Corrected the 16x16 icon to the latest Twitter logo.
|
177 |
|
rotatingtweets.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Rotating Tweets (Twitter widget & shortcode)
|
4 |
Description: Replaces a shortcode such as [rotatingtweets screen_name='your_twitter_name'], or a widget, with a rotating tweets display
|
5 |
-
Version: 1.6.
|
6 |
Text Domain: rotatingtweets
|
7 |
Author: Martin Tod
|
8 |
Author URI: http://www.martintod.org.uk
|
@@ -1207,6 +1207,10 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
|
|
1207 |
'easing' => 'swing',
|
1208 |
'slides'=> 'div.rotatingtweet'
|
1209 |
);
|
|
|
|
|
|
|
|
|
1210 |
if(! WP_DEBUG) $v2options['log'] = 'false';
|
1211 |
if($rotation_type == 'carousel'):
|
1212 |
$v2options['carousel-vertical'] = 'true';
|
2 |
/*
|
3 |
Plugin Name: Rotating Tweets (Twitter widget & shortcode)
|
4 |
Description: Replaces a shortcode such as [rotatingtweets screen_name='your_twitter_name'], or a widget, with a rotating tweets display
|
5 |
+
Version: 1.6.7
|
6 |
Text Domain: rotatingtweets
|
7 |
Author: Martin Tod
|
8 |
Author URI: http://www.martintod.org.uk
|
1207 |
'easing' => 'swing',
|
1208 |
'slides'=> 'div.rotatingtweet'
|
1209 |
);
|
1210 |
+
if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next']):
|
1211 |
+
$v2options['prev'] = '.'.$id.'_rtw_prev';
|
1212 |
+
$v2options['next'] = '.'.$id.'_rtw_next';
|
1213 |
+
endif;
|
1214 |
if(! WP_DEBUG) $v2options['log'] = 'false';
|
1215 |
if($rotation_type == 'carousel'):
|
1216 |
$v2options['carousel-vertical'] = 'true';
|