Version Description
- Fix: Fixed an issue with some setting checkboxes
- Fix: Fixed a rare encoding issue which occurred on some server configurations
- Tested with the upcoming WordPress 4.6 update
Download this release
Release Info
Developer | smashballoon |
Plugin | Custom Twitter Feeds |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.4
- README.txt +7 -2
- custom-twitter-feed.php +4 -2
- img/pro-notice.png +0 -0
- inc/CtfAdmin.php +4 -5
- inc/CtfFeed.php +3 -3
- inc/CtfOauthConnect.php +15 -4
- uninstall.php +1 -1
- views/admin/main.php +1 -1
README.txt
CHANGED
@@ -4,8 +4,8 @@ Contributors: smashballoon, craig-at-smash-balloon
|
|
4 |
Support Website: http://smashballoon/custom-twitter-feeds/
|
5 |
Tags: Twitter, Twitter feed, Custom Twitter Feed, Twitter feeds, Custom Twitter Feeds, Tweets, Custom Tweets, Tweets feed, Twitter widget, Custom Twitter widget, Twitter plugin, Twitter API, Twitter tweets
|
6 |
Requires at least: 3.0
|
7 |
-
Tested up to: 4.
|
8 |
-
Stable tag: 1.1.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -146,6 +146,11 @@ If you're still having trouble displaying your Tweets after trying the common is
|
|
146 |
2. Custom Twitter Feeds plugin Settings pages
|
147 |
|
148 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
149 |
= 1.1.3 =
|
150 |
* Fix: Prevented any duplicate Tweets from being shown
|
151 |
* Fix: Fixed a rare issue where a couple of settings weren't being saved successfully
|
4 |
Support Website: http://smashballoon/custom-twitter-feeds/
|
5 |
Tags: Twitter, Twitter feed, Custom Twitter Feed, Twitter feeds, Custom Twitter Feeds, Tweets, Custom Tweets, Tweets feed, Twitter widget, Custom Twitter widget, Twitter plugin, Twitter API, Twitter tweets
|
6 |
Requires at least: 3.0
|
7 |
+
Tested up to: 4.6
|
8 |
+
Stable tag: 1.1.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
146 |
2. Custom Twitter Feeds plugin Settings pages
|
147 |
|
148 |
== Changelog ==
|
149 |
+
= 1.1.4 =
|
150 |
+
* Fix: Fixed an issue with some setting checkboxes
|
151 |
+
* Fix: Fixed a rare encoding issue which occurred on some server configurations
|
152 |
+
* Tested with the upcoming WordPress 4.6 update
|
153 |
+
|
154 |
= 1.1.3 =
|
155 |
* Fix: Prevented any duplicate Tweets from being shown
|
156 |
* Fix: Fixed a rare issue where a couple of settings weren't being saved successfully
|
custom-twitter-feed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Custom Twitter Feeds
|
4 |
Plugin URI: http://smashballoon.com/custom-twitter-feeds
|
5 |
Description: Customizable Twitter feeds for your website
|
6 |
-
Version: 1.1.
|
7 |
Author: Smash Balloon
|
8 |
Author URI: http://smashballoon.com/
|
9 |
Text Domain: custom-twitter-feeds
|
@@ -24,11 +24,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
24 |
*/
|
25 |
|
26 |
define( 'CTF_URL', plugin_dir_path( __FILE__ ) );
|
27 |
-
define( 'CTF_VERSION', '1.1.
|
28 |
define( 'CTF_TITLE', 'Custom Twitter Feeds' );
|
29 |
define( 'CTF_JS_URL', plugins_url( '/js/ctf-scripts.js?ver=' . CTF_VERSION , __FILE__ ) );
|
30 |
define( 'OAUTH_PROCESSOR_URL', 'https://smashballoon.com/ctf-at-retriever/?return_uri=' );
|
31 |
|
|
|
|
|
32 |
require_once( CTF_URL . '/inc/widget.php' );
|
33 |
|
34 |
require_once( CTF_URL . '/inc/admin-hooks.php' );
|
3 |
Plugin Name: Custom Twitter Feeds
|
4 |
Plugin URI: http://smashballoon.com/custom-twitter-feeds
|
5 |
Description: Customizable Twitter feeds for your website
|
6 |
+
Version: 1.1.4
|
7 |
Author: Smash Balloon
|
8 |
Author URI: http://smashballoon.com/
|
9 |
Text Domain: custom-twitter-feeds
|
24 |
*/
|
25 |
|
26 |
define( 'CTF_URL', plugin_dir_path( __FILE__ ) );
|
27 |
+
define( 'CTF_VERSION', '1.1.4' );
|
28 |
define( 'CTF_TITLE', 'Custom Twitter Feeds' );
|
29 |
define( 'CTF_JS_URL', plugins_url( '/js/ctf-scripts.js?ver=' . CTF_VERSION , __FILE__ ) );
|
30 |
define( 'OAUTH_PROCESSOR_URL', 'https://smashballoon.com/ctf-at-retriever/?return_uri=' );
|
31 |
|
32 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
33 |
+
|
34 |
require_once( CTF_URL . '/inc/widget.php' );
|
35 |
|
36 |
require_once( CTF_URL . '/inc/admin-hooks.php' );
|
img/pro-notice.png
CHANGED
Binary file
|
inc/CtfAdmin.php
CHANGED
@@ -425,7 +425,7 @@ class CtfAdmin
|
|
425 |
'name' => 'showheader',
|
426 |
'title' => '<label for="ctf_showheader">Show Header</label><code class="ctf_shortcode">showheader
|
427 |
Eg: showheader=true</code>', // label for the input field
|
428 |
-
'callback' => '
|
429 |
'page' => 'ctf_options_showandhide', // matches the section name
|
430 |
'section' => 'ctf_options_showandhide', // matches the section name
|
431 |
'option' => 'ctf_options', // matches the options name
|
@@ -546,7 +546,7 @@ class CtfAdmin
|
|
546 |
'section' => 'ctf_options_advanced', // matches the section name
|
547 |
'option' => 'ctf_options', // matches the options name
|
548 |
'class' => 'small-text', // class for the wrapper and input field
|
549 |
-
'whatis' => "If your feed excludes reply tweets (this is automatic in hashtag/search feeds), the correct number of tweets may
|
550 |
'type' => 'number', // input field "type" attribute
|
551 |
'min' => 1,
|
552 |
'max' => 3,
|
@@ -1474,8 +1474,7 @@ class CtfAdmin
|
|
1474 |
|
1475 |
$cron_clear_cache = isset( $input['cron_cache_clear'] ) ? $input['cron_cache_clear'] : 'no';
|
1476 |
$checkbox_settings = array( 'width_mobile_no_fixed', 'include_retweeter', 'include_avatar', 'include_author', 'include_text',
|
1477 |
-
'include_date', 'include_actions', 'include_twitterlink', 'include_linkbox', 'creditctf', 'showbutton',
|
1478 |
-
'disablelinks', 'linktexttotwitter', 'showheader' );
|
1479 |
$checkbox_settings = apply_filters( 'ctf_admin_customize_checkbox_settings', $checkbox_settings );
|
1480 |
$leave_spaces = array( 'headertext', 'translate_minute', 'translate_hour' );
|
1481 |
|
@@ -1522,7 +1521,7 @@ class CtfAdmin
|
|
1522 |
wp_schedule_event( time(), $ctf_cron_schedule, 'ctf_cron_job' );
|
1523 |
}
|
1524 |
} else {
|
1525 |
-
$checkbox_settings = array( 'showbio' );
|
1526 |
$checkbox_settings = apply_filters( 'ctf_admin_style_checkbox_settings', $checkbox_settings );
|
1527 |
$leave_spaces = array( 'headertext' );
|
1528 |
|
425 |
'name' => 'showheader',
|
426 |
'title' => '<label for="ctf_showheader">Show Header</label><code class="ctf_shortcode">showheader
|
427 |
Eg: showheader=true</code>', // label for the input field
|
428 |
+
'callback' => 'reverse_checkbox', // name of the function that outputs the html
|
429 |
'page' => 'ctf_options_showandhide', // matches the section name
|
430 |
'section' => 'ctf_options_showandhide', // matches the section name
|
431 |
'option' => 'ctf_options', // matches the options name
|
546 |
'section' => 'ctf_options_advanced', // matches the section name
|
547 |
'option' => 'ctf_options', // matches the options name
|
548 |
'class' => 'small-text', // class for the wrapper and input field
|
549 |
+
'whatis' => "If your feed excludes reply tweets (this is automatic in hashtag/search feeds), the correct number of tweets may not show up. Increasing this number will increase the number of tweets retrieved but will also increase the load time for the feed as well", // what is this? text
|
550 |
'type' => 'number', // input field "type" attribute
|
551 |
'min' => 1,
|
552 |
'max' => 3,
|
1474 |
|
1475 |
$cron_clear_cache = isset( $input['cron_cache_clear'] ) ? $input['cron_cache_clear'] : 'no';
|
1476 |
$checkbox_settings = array( 'width_mobile_no_fixed', 'include_retweeter', 'include_avatar', 'include_author', 'include_text',
|
1477 |
+
'include_date', 'include_actions', 'include_twitterlink', 'include_linkbox', 'creditctf', 'showbutton', 'showheader' );
|
|
|
1478 |
$checkbox_settings = apply_filters( 'ctf_admin_customize_checkbox_settings', $checkbox_settings );
|
1479 |
$leave_spaces = array( 'headertext', 'translate_minute', 'translate_hour' );
|
1480 |
|
1521 |
wp_schedule_event( time(), $ctf_cron_schedule, 'ctf_cron_job' );
|
1522 |
}
|
1523 |
} else {
|
1524 |
+
$checkbox_settings = array( 'showbio', 'disablelinks', 'linktexttotwitter' );
|
1525 |
$checkbox_settings = apply_filters( 'ctf_admin_style_checkbox_settings', $checkbox_settings );
|
1526 |
$leave_spaces = array( 'headertext' );
|
1527 |
|
inc/CtfFeed.php
CHANGED
@@ -124,8 +124,7 @@ class CtfFeed
|
|
124 |
'width_mobile_no_fixed',
|
125 |
'disablelinks',
|
126 |
'linktexttotwitter',
|
127 |
-
'creditctf'
|
128 |
-
'showheader'
|
129 |
);
|
130 |
$this->setStandardBoolOptions( $bool_false, false );
|
131 |
|
@@ -193,7 +192,8 @@ class CtfFeed
|
|
193 |
|
194 |
$bool_true = array(
|
195 |
'showbutton',
|
196 |
-
'showbio'
|
|
|
197 |
);
|
198 |
$this->setStandardBoolOptions( $bool_true, true );
|
199 |
|
124 |
'width_mobile_no_fixed',
|
125 |
'disablelinks',
|
126 |
'linktexttotwitter',
|
127 |
+
'creditctf'
|
|
|
128 |
);
|
129 |
$this->setStandardBoolOptions( $bool_false, false );
|
130 |
|
192 |
|
193 |
$bool_true = array(
|
194 |
'showbutton',
|
195 |
+
'showbio',
|
196 |
+
'showheader'
|
197 |
);
|
198 |
$this->setStandardBoolOptions( $bool_true, true );
|
199 |
|
inc/CtfOauthConnect.php
CHANGED
@@ -88,10 +88,21 @@ class CtfOauthConnect
|
|
88 |
*
|
89 |
* @param array $get_fields array of GET fields that are compatible with the Twitter API
|
90 |
*/
|
91 |
-
|
92 |
-
|
93 |
-
$
|
94 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
|
96 |
/**
|
97 |
* Users can manually set the request method if there is an uncatchable error in
|
88 |
*
|
89 |
* @param array $get_fields array of GET fields that are compatible with the Twitter API
|
90 |
*/
|
91 |
+
public function setGetFields( array $get_fields )
|
92 |
+
{
|
93 |
+
$url_string = '?';
|
94 |
+
$length = count( $get_fields );
|
95 |
+
$j = 1;
|
96 |
+
foreach ( $get_fields as $key => $value ) {
|
97 |
+
$url_string .= rawurlencode( $key ) . '=' . rawurlencode( $value );
|
98 |
+
if ( $j != $length ) {
|
99 |
+
$url_string .= '&';
|
100 |
+
}
|
101 |
+
$j++;
|
102 |
+
}
|
103 |
+
|
104 |
+
$this->get_fields = $url_string;
|
105 |
+
}
|
106 |
|
107 |
/**
|
108 |
* Users can manually set the request method if there is an uncatchable error in
|
uninstall.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<?php
|
2 |
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
3 |
exit();
|
4 |
}
|
1 |
+
<?php
|
2 |
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
3 |
exit();
|
4 |
}
|
views/admin/main.php
CHANGED
@@ -42,7 +42,7 @@
|
|
42 |
<p><?php _e( "Find out how to display <a href='?page=custom-twitter-feeds&tab=display'>multiple feeds</a>.", "custom-twitter-feeds" ); ?></p>
|
43 |
</div>
|
44 |
|
45 |
-
<a href="https://smashballoon.com/custom-twitter-feeds/" target="_blank" class="ctf-pro-notice">
|
46 |
<img src="<?php echo plugins_url( '../../img/pro-notice.png' , __FILE__ ) ?>" alt="Custom Twitter Feeds Pro" />
|
47 |
</a>
|
48 |
|
42 |
<p><?php _e( "Find out how to display <a href='?page=custom-twitter-feeds&tab=display'>multiple feeds</a>.", "custom-twitter-feeds" ); ?></p>
|
43 |
</div>
|
44 |
|
45 |
+
<a href="https://smashballoon.com/custom-twitter-feeds/demo" target="_blank" class="ctf-pro-notice">
|
46 |
<img src="<?php echo plugins_url( '../../img/pro-notice.png' , __FILE__ ) ?>" alt="Custom Twitter Feeds Pro" />
|
47 |
</a>
|
48 |
|