Changeset 1441369
- Timestamp:
- 06/21/2016 10:12:47 PM (10 years ago)
- Location:
- click-tweet/trunk
- Files:
-
- 2 edited
-
click-and-tweet.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
click-tweet/trunk/click-and-tweet.php
r1441348 r1441369 78 78 * @var array 79 79 */ 80 protected $inlinePositions = array('left' => 'Left', 'right' => 'Right');80 protected $inlinePositions = ['left' => 'Left', 'right' => 'Right']; 81 81 82 82 /** … … 85 85 * @var array 86 86 */ 87 protected $cardPositions = array(87 protected $cardPositions = [ 88 88 'center-top' => 'Center Top', 89 89 'center-bottom' => 'Center Bottom', … … 94 94 'right-top' => 'Right Top', 95 95 'right-bottom' => 'Right Bottom' 96 );96 ]; 97 97 98 98 /** … … 100 100 * @var array 101 101 */ 102 protected $urlShorteners = array(102 protected $urlShorteners = [ 103 103 'none' => 'None', 104 104 'wp' => 'WordPress', 105 105 'google' => 'Google', 106 106 'bitly' => 'Bitly' 107 );107 ]; 108 108 109 109 /** … … 117 117 * @var array 118 118 */ 119 protected $postTypes = array('post', 'page');119 protected $postTypes = ['post', 'page']; 120 120 121 121 /** … … 123 123 * @var array 124 124 */ 125 protected $adminPages = array('settings_page_click-and-tweet', 'post.php', 'post-new.php');125 protected $adminPages = ['settings_page_click-and-tweet', 'post.php', 'post-new.php']; 126 126 127 127 /** … … 989 989 990 990 } 991 992 //Call the plugin 993 new ClickAndTweet(); 991 /* 992 * Checks the users php version for compatibility 993 */ 994 if ( version_compare( PHP_VERSION, '5.6', '<' ) ) { 995 add_action( 'admin_notices', create_function( '', "echo '<div class=\"error\"><p>".__('Click & Tweet requires PHP 5.6 to function properly. Please upgrade PHP or deactivate Click & Tweet.', 'Click % Tweet') ."</p></div>';" ) ); 996 return; 997 } else { 998 //Call the plugin 999 new ClickAndTweet(); 1000 } -
click-tweet/trunk/readme.txt
r1441348 r1441369 3 3 Tags: twitter, click, tweet, click-to-tweet, click-and-tweet, inline-tweet, tweet-card 4 4 Author Url: http://spacestud.io/ 5 Requires at least: 3.8 5 Requires at least: 3.8 and PHP 5.6+ 6 6 Tested up to: 4.5 7 7 Stable tag: trunk … … 49 49 = 0.8.9 = 50 50 * Bug fixes 51 * Hot fix to check for compatibility 51 52 52 53 = 0.8.6 =
Note: See TracChangeset
for help on using the changeset viewer.